:root {
    --primary-color: #6C63FF;
    --secondary-color: #4D44DB;
    --accent-color: #FF6584;
    --background-color: #F8F9FA;
    --card-color: #FFFFFF;
    --text-color: #333333;
    --text-light: #6C757D;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--card-color);
    box-shadow: var(--shadow);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.search-bar {
    display: flex;
    flex-grow: 0.4;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E0E0E0;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
    font-size: 0.9rem;
}

.search-bar button {
    padding: 0 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: var(--secondary-color);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    padding: 0.6rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-avatar i {
    color: var(--text-light);
}

.dashboard {
    display: flex;
    flex: 1;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-color);
    padding: 1.5rem 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    overflow-y: auto;
}

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

.sidebar nav li {
    margin-bottom: 0.25rem;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    gap: 0.75rem;
}

.sidebar nav a:hover {
    color: var(--primary-color);
    background-color: rgba(108, 99, 255, 0.1);
}

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

.sidebar nav li.active a {
    color: var(--primary-color);
    background-color: rgba(108, 99, 255, 0.1);
    border-left: 3px solid var(--primary-color);
}

.sidebar-footer {
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid #E0E0E0;
}

.storage-indicator {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #E0E0E0;
    border-radius: 3px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.storage-indicator span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.btn-secondary {
    width: 100%;
    padding: 0.6rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: rgba(108, 99, 255, 0.1);
}

.content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.welcome-text h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    opacity: 0.9;
    max-width: 600px;
}

.welcome-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.25rem;
}

.tool-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-tool {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.btn-tool:hover {
    background-color: var(--secondary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 1rem 0;
    }
    
    .sidebar nav ul {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
    }
    
    .sidebar nav li {
        flex-shrink: 0;
    }
    
    .sidebar nav a {
        padding: 0.5rem 1rem;
        border-left: none;
    }
    
    .sidebar nav li.active a {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .content {
        padding: 1rem;
    }
    
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .welcome-image {
        margin-top: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
    }
}