/* Main Styles - Base layout and typography */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #e0e6ed;
    line-height: 1.6;
}
.btn-warning {
       background-color: #ffc107;
       color: #212529;
       border: 1px solid #ffc107;
   }
   
   .btn-warning:hover {
       background-color: #e0a800;
       border-color: #d39e00;
   }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: bold;
    color: #ffd700;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b0b0;
    font-size: 14px;
}

.admin-badge {
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: bold;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: clamp(12px, 2.5vw, 14px);
}

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

.btn-primary:hover {
    background: #ff5252;
}

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

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

.btn-secondary {
    background: rgba(26,26,26,0.2);
    color: #1a1a1a;
}

.btn-secondary:hover {
    background: rgba(26,26,26,0.3);
}

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

.btn-auth:hover {
    background: #218838;
}

.btn-logout {
    background: #6c757d;
    color: white;
    font-size: 12px;
    padding: 6px 12px;
}

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

.btn-cancel {
    background: #666;
    color: white;
}

.btn-cancel:hover {
    background: #777;
}

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

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

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e6ed;
    font-size: clamp(14px, 3vw, 16px);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: clamp(14px, 3vw, 16px);
    background: #3a3a3a;
    color: #e0e6ed;
}

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

.form-input.error, .form-select.error, .form-textarea.error {
    border-color: #ff6b6b;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Sidebar Styles */
.sidebar {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.sidebar h3 {
    margin-bottom: 20px;
    color: #e0e6ed;
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 700;
}

.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 25px;
    font-size: clamp(14px, 3vw, 16px);
    background: #3a3a3a;
    color: #e0e6ed;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.forgot-password-link {
    font-size: 12px;
}

.toggle-link {
    color: #ffd700;
    cursor: pointer;
    text-decoration: underline;
}

.toggle-link:hover {
    color: #e6c200;
}

.search-input:focus {
    outline: none;
    background: #404040;
    box-shadow: 0 4px 12px rgba(255,215,0,0.2);
}

.search-input::placeholder {
    color: #888;
}

.upcoming-event {
    background: #3a3a3a;
    margin-bottom: 12px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid #404040;
}

.upcoming-event:hover {
    background: #404040;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    border-color: #555;
}

.upcoming-event-content {
    flex: 1;
    min-width: 0;
}

.upcoming-event-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #e0e6ed;
    font-size: clamp(15px, 3vw, 17px);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-event-date {
    font-size: clamp(12px, 2.5vw, 13px);
    color: #ffd700;
    font-weight: 500;
    margin-bottom: 4px;
}

.upcoming-event-creator {
    font-size: clamp(11px, 2.2vw, 12px);
    color: #999;
    opacity: 0.8;
}

.upcoming-event-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #555;
    transition: all 0.3s ease;
}

.upcoming-event:hover .upcoming-event-image {
    border-color: #ffd700;
}

/* Default placeholder for events without images */
.upcoming-event-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4a4a4a, #5a5a5a);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #888;
    border: 2px solid #555;
}

.upcoming-event-category {
    font-size: clamp(10px, 2.2vw, 11px);
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 6px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 2px;
    font-weight: 500;
}

.upcoming-event:hover {
    background: #404040;
}

.upcoming-event-content {
    flex: 1;
}

.upcoming-event-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #e0e6ed;
    font-size: clamp(14px, 3vw, 16px);
}

.upcoming-event-date {
    font-size: clamp(11px, 2.5vw, 12px);
    color: #ffd700;
}

.upcoming-event-creator {
    font-size: clamp(10px, 2.2vw, 11px);
    color: #888;
}

.upcoming-event-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.no-events {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    background: #333;
    border-radius: 12px;
    border: 2px dashed #555;
}

.no-events p:first-child {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 8px;
    color: #aaa;
}

.no-events p:last-child {
    font-size: clamp(12px, 2.5vw, 14px);
    color: #777;
}

/* Admin delete button styling for upcoming events */
.admin-delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-delete-btn:hover {
    opacity: 1;
    background: #c82333;
    transform: scale(1.1);
}

/* Footer Styles */
.footer {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: #888;
    text-decoration: none;
    font-size: clamp(13px, 2.8vw, 14px);
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.footer-link:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.footer-copyright {
    color: #666;
    font-size: clamp(11px, 2.2vw, 12px);
    border-top: 1px solid #404040;
    padding-top: 15px;
    margin-top: 15px;
}

/* Toast Notifications */
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 90vw;
    font-size: clamp(12px, 3vw, 14px);
}

.success-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.error-toast {
    background: #dc3545;
}