/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8f9fc 0%, #f1f3f8 100%);
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    margin: 0;
    padding: 0 32px;
    box-sizing: border-box;
}"}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    width: 100%;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" fill-opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 64px 48px;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 24px 24px 0 0;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: -0.02em;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 48px;
    color: #6c757d;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.01em;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 20px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
}


.form-group button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}

.form-group button:active {
    transform: translateY(0);
}

/* Table Styles */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
    position: relative;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 8px 8px 0 0;
}

.data-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    margin: 0;
}

.data-table th,
.data-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    font-size: 13px;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #dee2e6;
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    box-shadow: inset 0 0 0 1px #007bff;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Column specific widths */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

.data-table th:nth-child(5),
.data-table td:nth-child(5) {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

.data-table th:nth-child(6),
.data-table td:nth-child(6) {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

.data-table th:nth-child(7),
.data-table td:nth-child(7) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    white-space: nowrap;
}

/* Special handling for longer content */
.data-table .song-title,
.data-table .song-artist {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table .song-link {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table .creator-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Link styling in table */
.data-table a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.data-table a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Tooltip for truncated text */
.data-table td[title] {
    cursor: help;
}

/* 操作列特殊样式 */
.data-table .action-buttons {
    min-width: 140px;
}

.data-table td.action-buttons {
    padding: 8px 6px;
    white-space: nowrap;
    overflow: visible;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
}

.btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
    color: white !important;
}


.btn:hover {
    opacity: 0.9;
}

.btn-edit {
    background: #17a2b8;
    color: white;
    border: 1px solid transparent;
}

.btn-edit:hover {
    background: #138496;
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: 1px solid transparent;
}

.btn-delete:hover {
    background: #c82333;
    color: white;
}

.btn-add {
    background: #28a745;
    color: white;
    margin-bottom: 0;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 500;
}

.btn-add:hover {
    background: #218838;
    color: white;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #1a1a1a;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    margin: 0 -32px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}


.navbar ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.navbar ul li a {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    position: relative;
    font-size: 15px;
}

.navbar ul li a:hover {
    color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #007bff;
}

.navbar ul li a:hover::after {
}

/* Search Form */
.search-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
}

.search-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
}

.search-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
}

.search-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.search-form button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.search-form button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Error and Success Messages */
.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 20px 24px;
    margin-bottom: 32px;
    border-radius: 12px;
    border: 1px solid #f5c6cb;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 12px rgba(248, 215, 218, 0.3);
}


.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 20px 24px;
    margin-bottom: 32px;
    border-radius: 12px;
    border: 1px solid #c3e6cb;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 12px rgba(212, 237, 218, 0.3);
}


/* Dashboard Specific Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid #e9ecef;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 8px 8px 0 0;
}


.stat-card h3 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card .number {
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .trend {
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
    margin-top: 4px;
}

.stat-card .trend::before {
    content: '↗';
    margin-right: 4px;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.action-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid #e9ecef;
    position: relative;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #6c5ce7);
    border-radius: 8px 8px 0 0;
}

.action-card:hover::before {
    opacity: 1;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.action-card h3 {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
}

.action-card p {
    color: #6c757d;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 13px;
}

.action-card a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.action-card a::after {
    content: '→';
}

.action-card a:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.action-card a:hover::after {
    transform: translateX(4px);
}

/* Front Page Header */
.front-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 -32px;
}

.front-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" fill-opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.front-header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.front-header h1 {
    margin: 0 0 16px 0;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.front-header .subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: 0.01em;
}

.admin-link {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Page Titles */
.page-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 16px;
}

h2 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.page-subtitle {
    color: #6c757d;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0;
}

h3 {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px 0;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0 20px;
    }
    
    .container {
        padding: 16px 0;
        width: 100%;
        margin: 0 auto;
    }
    
    .login-box {
        padding: 32px 24px;
        margin: 16px;
    }
    
    .navbar {
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
    }
    
    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .search-section {
        padding: 24px;
        margin: 32px 0;
    }
    
    .search-form {
        flex-direction: column;
        max-width: none;
        gap: 12px;
    }
    
    .search-form button {
        padding: 16px 24px;
    }
    
    .dashboard-stats,
    .dashboard-actions {
        grid-template-columns: 1fr;
    }
    
    .front-header {
        padding: 48px 0;
        margin: 0 -20px;
    }
    
    header {
        margin: 0 -20px;
    }
    
    .front-header h1 {
        font-size: 32px;
        padding-right: 0;
    }
    
    .front-header .subtitle {
        font-size: 16px;
    }
    
    .front-header-content {
        padding: 0 16px;
    }
    
    .admin-link {
        top: 24px;
        right: 16px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .table-container {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        margin: 16px 0;
    }
    
    .data-table {
        font-size: 13px;
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 4px;
    }
    
    /* Mobile specific column widths */
    .data-table th:nth-child(1),
    .data-table td:nth-child(1) {
        width: 35px;
        min-width: 35px;
        max-width: 35px;
    }
    
    .data-table th:nth-child(2),
    .data-table td:nth-child(2) {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
    
    .data-table th:nth-child(3),
    .data-table td:nth-child(3) {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
    }
    
    .data-table th:nth-child(4),
    .data-table td:nth-child(4) {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
    }
    
    .data-table th:nth-child(5),
    .data-table td:nth-child(5) {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }
    
    .data-table th:nth-child(6),
    .data-table td:nth-child(6) {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
    }
    
    .data-table th:nth-child(7),
    .data-table td:nth-child(7) {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .action-buttons {
        gap: 4px;
    }
    
    .btn {
        font-size: 11px;
        padding: 6px 8px;
        min-width: 45px;
    }
    
    .data-table td.action-buttons {
        padding: 6px 2px;
    }
}
