/* Əsas Sıfırlama və Font */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f4f7f9;
}

/* --- Login Səhifəsi Üslubu --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.login-container {
    max-width: 400px;
    width: 90%;
}

.login-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-card h2 {
    color: #007bff;
    margin-bottom: 10px;
}

.login-card p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 14px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary {
    background: #28a745;
    color: white;
}

.btn-primary:hover {
    background: #218838;
}

.resend-link {
    margin-top: 10px;
    font-size: 14px;
}
.resend-link a {
    color: #007bff;
    text-decoration: none;
}
.back-to-site {
    margin-top: 25px;
    font-size: 14px;
}
.back-to-site a {
    color: #007bff;
    text-decoration: none;
}


/* --- Dashboard Üslubu --- */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigasiya */
.sidebar {
    width: 250px;
    background: #2c3e50; /* Tünd rəng */
    color: white;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-header h3 {
    font-size: 22px;
    color: #007bff;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #ecf0f1;
    transition: background 0.3s;
}

.sidebar-nav ul li a:hover, .sidebar-nav ul li a.active {
    background: #34495e;
    border-left: 4px solid #007bff;
    color: white;
}

.sidebar-nav ul li a i {
    margin-right: 10px;
}

.menu-heading {
    color: #7f8c8d;
    font-size: 12px;
    padding: 15px 20px 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #34495e;
}

.sidebar-footer a {
    color: #e74c3c;
    text-decoration: none;
    display: block;
    text-align: center;
}
.sidebar-footer a:hover {
    color: #c0392b;
}


/* Əsas Kontent */
.main-content {
    flex-grow: 1;
    padding: 30px;
}

.main-header-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.user-info span {
    margin-right: 10px;
    font-weight: 600;
}
.user-info i {
    color: #007bff;
    font-size: 20px;
}

/* Statistika Kartları */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.stat-card i {
    font-size: 36px;
    margin-right: 15px;
}

.icon-blue { color: #007bff; }
.icon-green { color: #28a745; }
.icon-orange { color: #ffc107; }
.icon-red { color: #dc3545; }

.stat-details .stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-details .stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* Qrafik Bölməsi */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.chart-placeholder {
    height: 300px;
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #adb5bd;
    margin-top: 20px;
}

/* Responsivlik (Dashboard) */
@media (max-width: 1200px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr); /* Kiçik ekranlarda 2 sütun */
    }
}
@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .sidebar-header {
        display: none; /* Mobildə yerə qənaət */
    }
    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .sidebar-nav ul li a {
        border-left: none;
        padding: 8px 15px;
    }
    .stats-section {
        grid-template-columns: 1fr; /* Mobildə 1 sütun */
    }
    .main-content {
        padding: 20px 10px;
    }
    .main-header-admin {
        flex-direction: column;
        align-items: flex-start;
    }
    .user-info {
        margin-top: 10px;
    }
}

/* --- Influencer Siyahısı və Cədvəl Üslubu --- */
.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.search-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Cədvəl Üslubu */
.table-responsive {
    overflow-x: auto; /* Mobil üçün cədvəli sürüşdürməyə imkan verir */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.data-table tr:hover {
    background-color: #f1f1f1;
}

/* Şəkil Kiçik Görünüşü */
.profile-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #ced4da; /* Boşluq üçün rəng */
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Status Nişanları */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Əməliyyat Düymələri */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    font-size: 16px;
    transition: color 0.3s;
}

.btn-edit { color: #007bff; }
.btn-edit:hover { color: #0056b3; }

.btn-deactivate, .btn-activate { color: #ffc107; }
.btn-deactivate:hover, .btn-activate:hover { color: #e0a800; }

.btn-delete { color: #dc3545; }
.btn-delete:hover { color: #bd2130; }

/* Platforma İkonları */
.text-red { color: #ff0000; } /* YouTube */
.text-pink { color: #c32aa3; } /* Instagram */
.data-table td i {
    margin-right: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}
.pagination span {
    font-size: 14px;
    color: #6c757d;
}

/* Mobil görünüşdə cədvəl üçün adaptasiya */
@media (max-width: 600px) {
    .data-table thead {
        display: none; /* Mobildə başlıqları gizlədirik */
    }
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }
    .data-table tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
    .data-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .data-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: 600;
        text-align: left;
        color: #495057;
        font-size: 12px;
    }
}



/* --- Form Üslubu (Əlavə Et/Redaktə Səhifələri üçün) --- */
.form-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.help-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Sosial Media İnputları üçün xüsusi stil */
.social-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding-right: 10px;
}

.social-input-group i {
    font-size: 20px;
    padding: 10px;
    color: #6c757d;
}

.social-input-group input {
    flex-grow: 1;
    border: none;
    padding: 10px 0;
}

.social-input-group input:focus {
    border-color: transparent;
}

hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Form Actions */
.form-actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.btn-lg {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
}
.btn-secondary {
    background: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background: #5a6268;
}

/* --- İzləyici Sayılarını Qeyd Etmək Üçün Əlavə CSS --- */

.platform-group {
    display: grid;
    grid-template-columns: 2fr 1fr; /* URL-ə 2 hissə, Follower-ə 1 hissə */
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

/* Əsas sosial inputu yenidən dizayn edirik ki, griddə yaxşı görünsün */
.social-input-group {
    margin-bottom: 0; /* Artıq xarici margin lazım deyil, çünki grid idarə edir */
}

/* İzləyici Sayı Inputu üçün xüsusi stil */
.follower-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background: #fff;
    padding-right: 10px;
}

.follower-input-group input {
    flex-grow: 1;
    border: none;
    padding: 10px 0 10px 10px;
    text-align: right;
}

.follower-input-group input:focus {
    border-color: transparent;
    outline: none;
}

.follower-input-group span {
    color: #007bff;
    font-size: 15px;
}

.follower-input-group span i {
    margin-left: 5px;
}

/* Mobildə görünüş */
@media (max-width: 768px) {
    .platform-group {
        grid-template-columns: 1fr; /* Mobildə alt-alta yığırıq */
        gap: 10px;
    }
}

/* --- Kateqoriya və Brend İdarəetmə Üslubları --- */

.form-group-inline {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.form-group-inline input[type="text"] {
    flex-grow: 1;
    max-width: 400px; /* Əlavə etmə formasını yığcam saxlayırıq */
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

/* Brend Forması üçün Grid (Brend Adı, Loqo, Button yan-yana) */
.brand-form {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr; /* Brend Adı, Loqo, Əlavə et düyməsi */
    gap: 20px;
    align-items: flex-end;
}

.brand-form .form-group {
    margin-bottom: 0;
}

.form-actions-small {
    padding-bottom: 5px; /* Düyməni inputlarla eyni səviyyəyə gətirmək üçün */
}

/* Brend Loqosu cədvəl üçün kiçik görünüş */
.logo-thumb {
    width: 50px;
    height: 30px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    /* Gələcəkdə burada background-image istifadə olunacaq */
}

/* Mobil adaptasiya (Kateqoriya/Brend formaları) */
@media (max-width: 768px) {
    .form-group-inline, .brand-form {
        flex-direction: column;
        display: flex; /* grid-i override edirik */
        gap: 15px;
    }
    .form-group-inline input[type="text"] {
        max-width: 100%;
    }
    .brand-form .form-group {
        width: 100%;
    }
    .form-actions-small {
        width: 100%;
        padding-bottom: 0;
    }
}

.submit-area {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    text-align: center;
    z-index: 50;
}

.btn-submit {
    background-color: #3498db;
    color: white;
    padding: 14px 35px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #217dbb;
}
