/* Portal Custom CSS - Light Theme with Yellow Accent */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Header Styles */
.portal-header {
    background: white;
    border-bottom: 3px solid #ebdb34;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portal-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.portal-header h1 .highlight {
    color: #ebdb34;
}

/* User Info Section */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #333;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ebdb34;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.btn-primary {
    background: #ebdb34;
    color: #333;
    border: 2px solid #ebdb34;
}

.btn-primary:hover {
    background: #ffc107;
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(235, 219, 52, 0.3);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-warning {
    background: #ff8c00;
    color: white;
}

.btn-warning:hover {
    background: #ff6f00;
    transform: translateY(-2px);
}

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

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.logout-btn {
    background: #ebdb34;
    color: #333;
    border: 2px solid #ebdb34;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.logout-btn:hover {
    background: #ffc107;
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(235, 219, 52, 0.3);
}

.back-btn {
    background: #ebdb34;
    color: #333;
    border: 2px solid #ebdb34;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-btn:hover {
    background: #ffc107;
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(235, 219, 52, 0.3);
}

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

.welcome-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

/* Welcome Text */
.welcome-text {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.welcome-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.welcome-text p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ebdb34;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(235, 219, 52, 0.3);
    border-color: #ebdb34;
}

.project-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #e9ecef;
}

.project-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.project-icon img.emoji {
    width: 5rem;
    height: 5rem;
    vertical-align: middle;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-desc {
    color: #6c757d;
    font-size: 0.9rem;
}

.coming-soon {
    background: #ebdb34;
    color: #333;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    color: white;
}

.alert-success {
    background: #10b981;
}

.alert-error {
    background: #ef4444;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

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

.card-header h2 {
    color: #333;
    font-size: 1.5rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ebdb34;
}

tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

tbody tr:hover {
    background: #f8f9fa;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background: #e9ecef;
    color: #6c757d;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #333;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: #ebdb34;
    box-shadow: 0 0 0 3px rgba(235, 219, 52, 0.1);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
select:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    color: #6c757d;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ebdb34;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    color: #333;
}

/* Section Title */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

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

/* Error Message */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ebdb34;
}

.empty-state h3 {
    color: #333;
}

/* Footer */
.portal-footer {
    background: white;
    border-top: 2px solid #ebdb34;
    color: #6c757d;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    margin-top: auto;
}

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

    .portal-header h1 {
        font-size: 1.4rem;
    }

    .portal-container {
        padding: 0 1rem;
    }

    .welcome-text h2 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
