/* باشقۇرۇش بېتى ئۇسلۇبى */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.8rem;
    margin: 0;
}

.admin-header nav {
    display: flex;
    gap: 15px;
}

.admin-header nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.admin-header nav a:hover,
.admin-header nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

.admin-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.admin-section h2 {
    color: #667eea;
    margin: 0;
}

.section-desc {
    color: #888;
    margin-bottom: 25px;
}

.btn-add {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ئېلىش كۇنۇپكىسى */
.btn-fetch {
    background: linear-gradient(135deg, #ec4141 0%, #c41e3a 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-fetch:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(236, 65, 65, 0.4);
}

/* تۈر كارتىلىرى */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.category-card:hover {
    border-color: #4A90D9;
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.2);
    transform: translateY(-3px);
}

.category-icon {
    font-size: 4.5rem;
    margin-bottom: 10px;
}

.category-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.category-name {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.category-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover .category-actions {
    opacity: 1;
}

.btn-edit, .btn-delete {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #667eea;
    color: white;
}

.btn-edit:hover {
    background: #5568d3;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* باھا كارتىلىرى */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pricing-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card.free {
    border: 2px solid #28a745;
}

.pricing-card.paid {
    border: 2px solid #667eea;
}

.pricing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pricing-category {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.pricing-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pricing-badge.free {
    background: #28a745;
    color: white;
}

.pricing-badge.paid {
    background: #667eea;
    color: white;
}

.pricing-price {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 15px;
}

.pricing-actions {
    display: flex;
    gap: 10px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.pricing-modal {
    max-width: 500px;
}

/* ئايلانما ئېلان كارتىلىرى */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.banner-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.banner-card.inactive {
    opacity: 0.6;
}

.banner-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.banner-info {
    padding: 15px;
}

.banner-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.banner-link {
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 8px;
    word-break: break-all;
}

.banner-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-status.active {
    background: #28a745;
    color: white;
}

.banner-status.inactive {
    background: #dc3545;
    color: white;
}

.banner-actions {
    display: flex;
    gap: 10px;
}

/* ناخشا كارتىلىرى */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.song-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.song-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.song-cover {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.song-cover span {
    font-size: 1.5rem;
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.song-actions {
    display: flex;
    gap: 8px;
}

.song-actions .btn-edit,
.song-actions .btn-delete {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* تۈر ئۇچۇر سۈزۈكلىرى ئۇسلۇبى */
.category-fields-container {
    margin-top: 10px;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.field-row select,
.field-row input[type="text"],
.field-row input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.custom-dropdown {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    position: relative;
    direction: ltr;
    z-index: 100;
}

.custom-dropdown-btn {
    width: 100%;
    padding: 10px 32px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.custom-dropdown-btn:hover {
    border-color: #999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.custom-dropdown-btn:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.custom-dropdown-arrow {
    font-size: 0.7rem;
    color: #666;
    pointer-events: none;
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.custom-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.custom-dropdown-item:hover {
    background-color: #f5f5f5;
}

.field-row .field-options-container {
    flex: 2;
    min-width: 200px;
}

.field-row .field-options-container input {
    width: 100%;
}

.field-row .btn-remove-field {
    background: #dc3545;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.field-row .btn-remove-field:hover {
    background: #c82333;
    transform: scale(1.1);
}

.btn-add-field {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 10px;
    transition: all 0.3s;
}

.btn-add-field:hover {
    background: #218838;
}
