/* Base 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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

/* Flash Messages */
.success-message, .error-message, .warning-message, .info-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.success-message {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.warning-message {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.info-message {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.auth-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 450px;
    width: 100%;
}

.auth-box h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 28px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 14px;
}

.radio-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

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

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Auth Links */
.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.create-account-link {
    font-size: 18px;
}

/* Player Container */
.player-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.player-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-header h1 {
    font-size: 32px;
}

.user-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.player-content {
    padding: 40px;
}

.audio-player {
    margin-bottom: 30px;
}

.audio-player audio {
    width: 100%;
    border-radius: 8px;
}

.stream-info {
    margin-bottom: 30px;
    text-align: center;
}

.stream-info h2 {
    color: #667eea;
    margin-bottom: 10px;
}

.stream-url-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stream-url-box input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin: 10px 0;
    font-family: monospace;
}

.instructions {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.instructions ul {
    margin: 15px 0;
    padding-left: 25px;
}

.instructions li {
    margin: 8px 0;
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    color: #333;
    font-size: 28px;
}

.admin-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-section h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-alert {
    border: 2px solid #ffc107;
    background: #fff3cd;
}

.stat-card h3 {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
}

.stat-card p {
    color: #888;
    font-size: 14px;
}

.stat-link {
    display: inline-block;
    margin-top: 10px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.stat-link:hover {
    text-decoration: underline;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.action-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.action-card p {
    opacity: 0.9;
    font-size: 14px;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

.actions-cell {
    white-space: nowrap;
}

.actions-cell form {
    display: inline-block;
    margin-right: 5px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Pending Request Card */
.pending-request-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.pending-request-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.request-info p {
    margin: 5px 0;
    color: #666;
}

.request-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.reject-form {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

/* Form Container */
.form-container {
    max-width: 600px;
}

.form-container form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state h2 {
    color: #666;
    margin-bottom: 15px;
}

.empty-state p {
    color: #888;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .player-header,
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-nav,
    .user-info {
        flex-direction: column;
        width: 100%;
    }
    
    .stats-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        font-size: 14px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
}
