/* css/dashboard.css */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    color: white;
    padding: 2rem 1rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
    margin-bottom: 2rem;
}

.sidebar-header h2 {
    font-size: 1.5rem;
}

.sidebar-header h2 span {
    color: #667eea;
}

.sidebar-header p {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: #aaa;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.sidebar-nav a i {
    width: 20px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

/* Dashboard Main */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: #f5f5f5;
    min-height: 100vh;
}

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

.dashboard-header h1 {
    font-size: 1.8rem;
    color: #1a1a1a;
}

.dashboard-clock .professional-clock {
    background: #1a1a1a;
    padding: 0.5rem 1rem;
}

/* Dashboard Tabs */
.dashboard-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dashboard-tab.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Profile Section */
.profile-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.profile-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-preview i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.8);
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

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

/* Project Form */
.project-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.project-form h2 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Projects Table */
.projects-table-container {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    overflow-x: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
}

.projects-table th,
.projects-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.projects-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.project-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .delete-btn {
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #667eea;
    color: white;
}

.delete-btn {
    background: #e53e3e;
    color: white;
}

.edit-btn:hover, .delete-btn:hover {
    transform: translateY(-2px);
}

/* Image Preview */
#imagePreview {
    margin-top: 1rem;
}

#imagePreview img {
    max-width: 200px;
    border-radius: 10px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.login-header h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
}

.login-card .form-group {
    position: relative;
}

.login-card .form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.login-card .form-group input {
    padding-left: 45px;
}

.error-message {
    color: #e53e3e;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.loading-spinner i {
    font-size: 2rem;
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .projects-table {
        font-size: 0.85rem;
    }
    
    .projects-table th,
    .projects-table td {
        padding: 0.5rem;
    }
}