.app-view {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    height: 100%;
}

.app-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    overflow-y: auto;
    height: 100%;
}

.layout-container {
    display: flex;
    height: calc(100vh - 50px);
    margin-top: 0;
}

.sidebar {
    width: 240px;
    background-color: var(--menu-bg);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.create-new-btn {
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 12px 20px;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
    color: var(--text-color);
}

.create-new-btn:hover {
    box-shadow: 0 4px 8px 0 rgba(60, 64, 67, 0.3);
    background-color: #f8f9fa;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 4px;
}

.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-item.active {
    background-color: #e8f0fe;
    color: var(--accent-blue);
    font-weight: 500;
}

.nav-divider {
    height: 1px;
    background-color: #dadce0;
    margin: 10px 0;
}

.main-content {
    flex-grow: 1;
    padding: 20px 40px;
    overflow-y: auto;
    background-color: #fff;
}

.welcome-section {
    margin-bottom: 40px;
}

.welcome-section h2 {
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 500;
}

.welcome-section p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.quick-apps {
    display: flex;
    gap: 15px;
}

.quick-card {
    width: 140px;
    height: 100px;
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-blue);
}

.quick-card img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.quick-card span {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.quick-card small {
    font-size: 10px;
    color: #666;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.icon-btn-small {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
    color: #5f6368;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.files-table th {
    text-align: left;
    color: #5f6368;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #dadce0;
}

.files-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    color: #3c4043;
}

.files-table tr:hover td {
    background-color: #f8f9fa;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon-small {
    width: 20px;
    height: 20px;
}

.file-name {
    font-weight: 500;
}

.text-right {
    text-align: right;
    padding-right: 10px;
}

.view-controls .icon-btn-small.active {
    background-color: #e8f0fe;
    color: var(--accent-blue);
    border-radius: 4px;
}

.files-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding-top: 10px;
}

.file-card {
    border: 1px solid #dadce0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
    background: #fff;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.file-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-preview {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f3f4;
}

.card-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.card-footer {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    flex-grow: 1;
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.card-text .file-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.card-meta {
    font-size: 11px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 5px;
}

.settings-sidebar .nav-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.settings-tab {
    display: none;
    max-width: 800px;
    animation: fadeIn 0.2s ease-in-out;
}

.settings-tab.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #dadce0;
    padding-bottom: 20px;
}

.settings-header h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 5px;
}

.settings-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.form-select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background-color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(43, 136, 216, 0.2);
}

.setting-group-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin-bottom: 25px;
}

.toggle-text span {
    display: block;
    font-weight: 500;
    font-size: 14px;
}

.toggle-text small {
    color: var(--text-secondary);
    font-size: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent-blue);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.theme-options {
    display: flex;
    gap: 20px;
}

.theme-card {
    cursor: pointer;
    text-align: center;
}

.theme-preview {
    width: 120px;
    height: 80px;
    border: 2px solid #dadce0;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
}

.theme-card.active .theme-preview {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(43, 136, 216, 0.2);
}

.theme-preview.light {
    background: #f1f3f4;
}

.theme-preview.light::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: 40px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-preview.dark {
    background: #202124;
}

.theme-preview.dark::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: 40px;
    background: #3c4043;
}

.about-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dadce0;
}

.version {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.legal-info {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-links a {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 13px;
    margin: 0 5px;
}

.about-links a:hover {
    text-decoration: underline;
}

.create-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.wizard-step.active {
    display: block;
}

.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-header h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
}

.wizard-header p {
    color: var(--text-secondary);
}

.creation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    justify-content: center;
}

.create-card {
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.create-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-blue);
}

.create-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.create-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.create-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

.form-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #dadce0;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.selected-app-preview img {
    width: 48px;
    margin-bottom: 20px;
}

.input-group-large {
    text-align: left;
    margin-bottom: 30px;
}

.input-group-large label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group-large input {
    width: 100%;
    padding: 12px 0;
    font-size: 18px;
    border: none;
    border-bottom: 2px solid #dadce0;
    outline: none;
    background: transparent;
    color: var(--text-color);
    transition: border-color 0.2s;
}

.input-group-large input:focus {
    border-bottom-color: var(--accent-blue);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#sidebar-toggle{
    display: none;
}