/* Tawsiat Light Theme - Green & Orange Color Scheme */

:root {
    /* Color Palette from Logo */
    --primary-green: #6ebe44;
    --secondary-green: #2d9639;
    --dark-green: #1e5f2a;
    --orange-accent: #f89521;
    --light-orange: #ffa940;
    
    /* Light Theme Colors */
    --bg-light: #f5f5f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8f8;
    --bg-input: #f9f9f9;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --border-accent: #d0d0d0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    
    /* Status Colors */
    --success: #6ebe44;
    --warning: #f89521;
    --error: #ff4444;
    --info: #4499ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', 'Cairo', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--orange-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--primary-green);
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--orange-accent);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Navbar */
.navbar {
    background: var(--bg-card);
    border-bottom: 2px solid var(--primary-green);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
}

.logo h2 {
    color: var(--primary-green);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links .btn {
    margin: 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.close-menu {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--primary-green);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-green);
    box-shadow: 0 5px 20px var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-title {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--dark-green));
    box-shadow: 0 5px 20px rgba(110, 190, 68, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--orange-accent);
    color: white;
}

.btn-secondary:hover {
    background: var(--light-orange);
    box-shadow: 0 5px 20px rgba(248, 149, 33, 0.3);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #cc0000;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(110, 190, 68, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: #f0f0f0;
    color: var(--dark-green);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.table tr:hover {
    background: var(--bg-card-hover);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-danger {
    background: var(--error);
    color: white;
}

.badge-info {
    background: var(--info);
    color: white;
}

/* Messages/Alerts */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 4px solid;
}

.message-success {
    background: #e8f5e9;
    border-color: var(--success);
    color: var(--dark-green);
}

.message-error {
    background: #ffebee;
    border-color: var(--error);
    color: #c62828;
}

.message-warning {
    background: #fff3e0;
    border-color: var(--warning);
    color: #e65100;
}

.message-info {
    background: #e3f2fd;
    border-color: var(--info);
    color: #1565c0;
}

/* Chatbot Specific */
.chat-container {
    max-width: 900px;
    margin: 50px auto;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    padding: 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.chat-header h2 {
    color: white;
    margin: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    position: relative;
    background-image: 
        linear-gradient(45deg, rgba(110, 190, 68, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(248, 149, 33, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(110, 190, 68, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(248, 149, 33, 0.03) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    animation: backgroundMove 60s linear infinite;
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    }
    100% {
        background-position: 120px 120px, 120px 150px, 150px 90px, 90px 120px;
    }
}

.chat-message {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 12px;
    white-space: pre-line;
    line-height: 1.6;
}

.message-bubble.bot {
    line-height: 1.5;
    background: white;
    color: var(--text-primary);
    border: 1px solid #e0e0e0;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message-bubble.user {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(110, 190, 68, 0.3);
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
}

.chat-input {
    flex: 1;
}

.loading-dots {
    display: inline-block;
}

.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    margin: 0 2px;
    animation: loading 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced Loading Animation */
.loading-bubble {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid var(--primary-green) !important;
    box-shadow: 0 4px 20px rgba(110, 190, 68, 0.2) !important;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(110, 190, 68, 0.2);
    }
    50% {
        box-shadow: 0 6px 30px rgba(110, 190, 68, 0.4);
    }
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(110, 190, 68, 0.2);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
}

.loading-dots-animated {
    display: flex;
    gap: 8px;
}

.loading-dots-animated span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-green);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots-animated span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots-animated span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0) translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2) translateY(-10px);
        opacity: 1;
    }
}

/* Options Message Styling */
.options-bubble {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 2px solid var(--border-color) !important;
    padding: 25px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.options-header {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.options-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.option-btn:hover::before {
    transform: translateX(100%);
}

.option-btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
}

.option-btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--dark-green));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(110, 190, 68, 0.4);
}

.option-btn-whatsapp {
    background: linear-gradient(135deg, var(--orange-accent), #ff8c00);
    color: white;
}

.option-btn-whatsapp:hover {
    background: linear-gradient(135deg, #ff8c00, #e67e00);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(248, 149, 33, 0.4);
}

.option-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.option-text {
    flex: 1;
    text-align: center;
}

@media (max-width: 480px) {
    .options-bubble {
        padding: 20px !important;
    }
    
    .options-header {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .option-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .option-icon {
        font-size: 1.2rem;
    }
}

/* Stock Response Styling */
.stock-response {
    width: 100%;
    text-align: right;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.stock-response .stock-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 15px;
    margin-bottom: 0;
}

.stock-response .stock-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.stock-response .stock-movement {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
}

.stock-response .stock-movement .label {
    color: var(--text-secondary);
    font-weight: 600;
}

.stock-response .stock-movement .value {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 5px 15px;
    border-radius: 20px;
}

.stock-response .stock-movement .value.movement-تجميع {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.stock-response .stock-movement .value.movement-تصريف {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.stock-response .stock-section {
    background: white;
    border: 2px solid;
    padding: 12px;
    margin: 12px;
    border-radius: 8px;
}

.stock-response .stock-section.bullish {
    border-color: #d4edda;
    background: #f8fff9;
}

.stock-response .stock-section.bearish {
    border-color: #f8d7da;
    background: #fff8f8;
}

.stock-response .section-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid;
}

.stock-response .stock-section.bullish .section-title {
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.stock-response .stock-section.bearish .section-title {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

.stock-response .section-content p {
    margin: 6px 0;
    line-height: 1.6;
}

.stock-response .highlight {
    background: var(--orange-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-block;
    margin: 0 3px;
    font-size: 1.05rem;
}

.stock-response .highlight.target {
    background: var(--primary-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.stock-response .note {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
    margin: 3px 0 !important;
}

.stock-response .action {
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 0;
    padding: 6px 12px;
    border-radius: 6px;
}

.stock-response .stock-section.bullish .action {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.stock-response .stock-section.bearish .action {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.stock-response .stock-notes {
    background: #e7f5ff;
    border-right: 4px solid #1c7ed6;
    padding: 10px 12px;
    margin: 12px;
    border-radius: 0 8px 8px 0;
}

.stock-response .stock-notes strong {
    color: #1c7ed6;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .close-menu {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        gap: 0;
        padding: 70px 20px 20px 20px;
        box-shadow: -2px 0 10px var(--shadow-medium);
        transition: right 0.3s ease;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links .btn {
        width: 100%;
        text-align: center;
    }
    
    .chat-container {
        margin: 10px;
        height: calc(100vh - 120px);
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-header h2 {
        font-size: 1.3rem;
    }
    
    .chat-messages {
        padding: 15px 10px;
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .stock-response .stock-header h3 {
        font-size: 1.1rem;
    }
    
    .stock-response .stock-movement {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .stock-response .stock-section {
        padding: 10px;
        margin: 10px 8px;
    }
    
    .stock-response .section-title {
        font-size: 1rem;
    }
    
    .stock-response .highlight {
        font-size: 0.9rem;
        padding: 3px 8px;
        display: inline-block;
    }
    
    .stock-response .section-content p {
        font-size: 0.9rem;
    }
    
    .stock-response .stock-notes {
        margin: 10px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .chat-header h2 {
        font-size: 1.1rem;
    }
    
    .chat-header p {
        font-size: 0.85rem;
    }
    
    .chat-input-container {
        padding: 15px 10px;
    }
    
    .message-bubble {
        max-width: 90%;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .stock-response .stock-header h3 {
        font-size: 1rem;
    }
    
    .stock-response .highlight {
        font-size: 0.85rem;
        padding: 2px 6px;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.stat-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-green), var(--orange-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 40px 0 20px 0;
    margin-top: 50px;
    border-top: 2px solid var(--primary-green);
    box-shadow: 0 -2px 10px var(--shadow-light);
}

.footer-content {
    text-align: center;
}

.footer-section h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link.twitter {
    background: #1DA1F2;
    color: white;
}

.social-link.telegram {
    background: #0088cc;
    color: white;
}

.social-link.facebook {
    background: #1877f2;
    color: white;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.snapchat {
    background: #FFFC00;
    color: #000;
}

.social-link.tiktok {
    background: #000;
    color: white;
}

.social-link.threads {
    background: #000;
    color: white;
}

.social-link.youtube {
    background: #FF0000;
    color: white;
}

.social-link.linkedin {
    background: #0077b5;
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Main Content */
main {
    flex: 1;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.pagination .btn {
    padding: 8px 16px;
    min-width: 80px;
}

.pagination-info {
    color: var(--text-secondary);
    padding: 0 15px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .card {
        padding: 20px;
    }

    .logo img {
        height: 40px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .pagination .btn {
        padding: 6px 12px;
        min-width: 60px;
        font-size: 0.85rem;
    }
    
    .pagination-info {
        padding: 0 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        width: 100%;
        gap: 10px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .btn {
        width: 100%;
    }

    .chat-container {
        margin: 20px auto;
        height: calc(100vh - 150px);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-input);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-full {
    width: 100%;
}

