/* Login Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #444;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

.auth-form h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.form-group input::placeholder {
    color: #888;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, #1f5f99);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-danger {
    padding: 10px 20px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-1px);
}

.btn-dev {
    padding: 8px 16px;
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

.btn-dev:hover {
    background: linear-gradient(45deg, #8e44ad, #7d3c98);
    transform: translateY(-1px);
}

.btn-admin {
    padding: 8px 16px;
    background: linear-gradient(45deg, #e67e22, #d35400);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    background: linear-gradient(45deg, #d35400, #ba4a00);
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #ccc;
}

.auth-switch a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.user-profile {
    color: #fff;
}

.user-profile h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info-label {
    font-weight: 600;
    color: #ccc;
}

.user-info-value {
    color: #fff;
}

.profile-actions {
    margin-top: 25px;
    text-align: center;
}

.dev-actions, .admin-actions {
    margin: 20px 0;
    text-align: center;
}

.user-management {
    color: #fff;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.users-table th,
.users-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.dev-badge {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.admin-badge {
    background: linear-gradient(45deg, #e67e22, #d35400);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Error and Success Messages */
.message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.message.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.message.success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    color: #27ae60;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .users-table {
        font-size: 14px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-danger {
        margin: 5px 0;
    }
}
