/* BUFC Portal - Shared Styles */

/* Team Progress Buttons - Clickable */
.progress-round.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
}

.progress-round.clickable .click-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
    font-style: italic;
}

.progress-round.clickable:hover .click-hint {
    color: white;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #002D61 0%, #003C19 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003C19;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #4CAF50;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

.role-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
    display: inline-block;
}

.role-badge.admin {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.login-header h1 {
    color: #003C19;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

.login-footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-input:invalid {
    border-color: #dc3545;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.btn.secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.btn.danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    opacity: 0.7;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.card.success {
    border-left: 4px solid #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.card.warning {
    border-left: 4px solid #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

.card.error {
    border-left: 4px solid #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.card-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Voting Specific Styles */
.voting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.voting-header h2 {
    color: #003C19;
    font-size: 1.75rem;
}

.week-info {
    display: flex;
    gap: 0.5rem;
}

.week-badge, .season-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.week-badge {
    background: #4CAF50;
    color: white;
}

.season-badge {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.vote-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #f1f3f4;
    background: #fafbfc;
}

.vote-section h3 {
    color: #003C19;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.vote-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f3f4;
}

.vote-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.vote-summary h4 {
    color: #003C19;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.alert.warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.alert.info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .login-container {
        margin: 2rem auto;
        padding: 2rem;
    }

    .voting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .vote-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1,
    .page-header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .vote-section {
        padding: 1rem;
    }

    .rounds-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .round-card {
        padding: 0.5rem;
        min-height: 70px;
    }
    
    .round-label {
        font-size: 0.75rem;
    }
    
    .round-status-text {
        font-size: 0.7rem;
    }
}

/* Modal Overlay - should cover the entire screen */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
}

/* Hide modal when it has .hidden class */
.modal-overlay.hidden {
    display: none !important;
}

/* Modal container */
.modal {
    background: white !important;
    border-radius: 15px !important;
    width: 90% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
}

/* Large modal variant */
.modal.large {
    max-width: 700px !important;
}

/* Modal header */
.modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.5rem !important;
    border-bottom: 1px solid #eee !important;
    background: #f8f9fa !important;
    border-radius: 15px 15px 0 0 !important;
}

.modal-header h2 {
    margin: 0 !important;
    color: #333 !important;
    font-size: 1.25rem !important;
}

/* Close button */
.close-btn {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: #666 !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background-color 0.2s !important;
}

.close-btn:hover {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

/* Modal content */
.modal-content {
    padding: 1.5rem !important;
}

/* Ensure the modal appears above everything else */
.modal-overlay {
    z-index: 10000 !important;
}

/* Form styles within modal */
.edit-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

.form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.form-group label {
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 0.9rem !important;
}

.form-input {
    padding: 0.75rem !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: border-color 0.2s !important;
}

.form-input:focus {
    outline: none !important;
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2) !important;
}

/* Permissions section */
.permissions-section h3 {
    color: #003C19 !important;
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 0.5rem !important;
}

.permissions-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.permission-item {
    background: #f8f9fa !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

.permission-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    cursor: pointer !important;
}

.permission-checkbox {
    margin-top: 0.25rem !important;
    width: 16px !important;
    height: 16px !important;
}

.permission-name {
    font-weight: 600 !important;
    color: #333 !important;
    display: block !important;
}

.permission-desc {
    font-size: 0.85rem !important;
    color: #666 !important;
    display: block !important;
    margin-top: 0.25rem !important;
}

/* Modal actions */
.modal-actions {
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
    margin-top: 2rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #eee !important;
}

/* Voting Status Grid Styles */

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.grid-actions {
    display: flex;
    gap: 0.5rem;
}

.status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.summary-stat {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.round-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.round-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Status-based styling */
.round-card.voted {
    border-color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: white;
}

.round-card.voted:hover {
    background: linear-gradient(135deg, #218838 0%, #28a745 100%);
}

.round-card.pending {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.round-card.pending:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.round-card.current {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.round-number {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.9;
}

.round-status {
    font-size: 1.2rem;
}

.round-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.round-label {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.round-status-text {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

.round-date {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.grid-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.legend-indicator {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-indicator.voted {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
}

.legend-indicator.pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
}

.legend-indicator.current {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.loading-state, .error-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.error-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .modal {
        width: 95% !important;
        margin: 1rem !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .modal-actions {
        flex-direction: column !important;
    }
    
    .grid-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .grid-actions {
        justify-content: center;
    }
    
    .status-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .summary-stat {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .rounds-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .round-card {
        padding: 0.75rem;
        min-height: 80px;
    }
    
    .grid-legend {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}
/* Notifications Page Styles */
.form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Modern Form Groups */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafbfc;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #d1d9e0;
    background: white;
}

/* Select dropdown styling */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 3rem;
}

/* Textarea styling */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Help text styling */
.help-text {
    font-size: 0.85rem;
    color: #64748b;
    font-style: normal;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-text::before {
    content: "💡";
    font-size: 0.8rem;
}

.preview-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-card h2, .preview-section h2 {
    color: #003C19;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.char-count {
    font-size: 0.8rem;
    color: #64748b;
    text-align: right;
    margin-top: 0.5rem;
    font-weight: 500;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

.help-text {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.form-actions .btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.form-actions .btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.form-actions .btn.primary:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.form-actions .btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.form-actions .btn.secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Notification Preview Modal */
.notification-preview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.preview-device {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.preview-notification {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 350px;
    width: 100%;
}

.app-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notification-body {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: #999;
    font-size: 0.75rem;
}

.preview-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.preview-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Status Messages */
.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Recent Notifications */
.recent-notifications {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.recent-notifications h2 {
    color: #003C19;
    margin-bottom: 1.5rem;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #4CAF50;
}

.recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.recent-header strong {
    color: #333;
}

.recent-time {
    color: #666;
    font-size: 0.8rem;
}

.recent-body {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.recent-topic {
    color: #4CAF50;
    font-size: 0.8rem;
    font-weight: 500;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* Additional mobile styles for notifications */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        margin-bottom: 0.5rem;
    }
    
    .preview-notification {
        max-width: 100%;
    }
    
    .recent-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
