/* Admin Page Styles */

/* Admin link on updates page logo */
.admin-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-link:hover {
    filter: brightness(1.3);
    transform: scale(1.1);
}

.login-page,
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    max-width: 400px;
    width: 100%;
}

.login-box .form-group {
    margin-bottom: 20px;
}

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

.login-btn {
    width: 100%;
    padding: 15px !important;
    font-size: 16px !important;
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.3) 0%, rgba(129, 199, 132, 0.3) 100%) !important;
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.5) 0%, rgba(129, 199, 132, 0.5) 100%) !important;
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.back-link {
    margin-top: 20px;
    text-align: center;
}

.back-link a {
    text-decoration: none;
}

/* Admin Dashboard */
.admin-page header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logout-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 107, 107, 0.5) 100%);
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 8px;
    padding: 10px 20px;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.5) 0%, rgba(255, 107, 107, 0.7) 100%);
    transform: translateY(-2px);
}

.admin-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.textarea-input {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.add-btn {
    width: 100%;
    padding: 15px !important;
    font-size: 16px !important;
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.3) 0%, rgba(129, 199, 132, 0.5) 100%) !important;
    border-color: rgba(129, 199, 132, 0.5) !important;
    color: #81c784 !important;
}

.add-btn:hover {
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.5) 0%, rgba(129, 199, 132, 0.7) 100%) !important;
}

/* Updates List */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-update-item {
    background: rgba(15, 30, 45, 0.6);
    border: 1px solid rgba(79, 195, 247, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.admin-update-info {
    flex: 1;
}

.admin-update-date {
    font-size: 0.85em;
    color: #4fc3f7;
    margin-bottom: 5px;
}

.admin-update-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.admin-update-preview {
    font-size: 0.9em;
    color: #b0bec5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

.admin-update-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.edit-btn,
.delete-btn {
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
}

.edit-btn {
    background: rgba(79, 195, 247, 0.2);
    border-color: rgba(79, 195, 247, 0.5);
    color: #4fc3f7;
}

.edit-btn:hover {
    background: rgba(79, 195, 247, 0.4);
}

.delete-btn {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

.delete-btn:hover {
    background: rgba(255, 107, 107, 0.4);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.save-btn {
    flex: 1;
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.3) 0%, rgba(129, 199, 132, 0.5) 100%) !important;
    border-color: rgba(129, 199, 132, 0.5) !important;
    color: #81c784 !important;
}

.cancel-btn {
    flex: 1;
    background: rgba(100, 100, 100, 0.3) !important;
    border-color: rgba(100, 100, 100, 0.5) !important;
    color: #b0bec5 !important;
}

.no-updates {
    text-align: center;
    color: #b0bec5;
    padding: 30px;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-update-item {
        flex-direction: column;
    }
    
    .admin-update-preview {
        max-width: 100%;
    }
    
    .admin-update-actions {
        width: 100%;
    }
    
    .edit-btn,
    .delete-btn {
        flex: 1;
        text-align: center;
    }
    
    .admin-page header {
        flex-direction: column;
        text-align: center;
    }
    
    .logout-btn {
        width: 100%;
    }
}

