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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* Container Layout */
.container {
    display: flex;
    min-height: calc(100vh - 60px);
    gap: 0;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    position: fixed;
    height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 0 20px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 15px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #3498db;
}

.nav-link.active {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left-color: #3498db;
    font-weight: 600;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px 30px;
    background-color: white;
    margin-bottom: 60px;
}

.content-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.content-header h1 {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 18px;
    color: #7f8c8d;
}

/* Cards */
.welcome-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.card p {
    color: #555;
    line-height: 1.7;
}

.card a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card a:hover {
    color: #2980b9;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/* Document Page Styles */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.document-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.document-item .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.document-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.document-item p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #2980b9;
}

.btn.btn-secondary {
    background-color: #95a5a6;
}

.btn.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 20px 0;
    }

    .sidebar-header {
        padding: 0 20px 20px;
        margin-bottom: 10px;
    }

    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
    }

    .sidebar-nav li {
        flex: 1;
        min-width: 150px;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }

    .main-content {
        margin-left: 0;
        padding: 30px 20px;
        margin-bottom: 0;
    }

    .content-header h1 {
        font-size: 32px;
    }

    .welcome-section {
        grid-template-columns: 1fr;
    }

    .footer {
        position: static;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 15px 0;
    }

    .main-content {
        padding: 20px 15px;
        margin-bottom: 60px;
    }

    .content-header h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 16px;
    }

    .card {
        padding: 15px;
    }

    .card h2 {
        font-size: 18px;
    }
}
