.app-layout {
    display: flex;
    min-height: 100dvh;
    background-color: #060607;
    padding: 1rem;
    gap: 1rem;
}

.sidebar {
    position: fixed;
    inset: 0;
    margin: 1rem;
    width: 260px;
    flex-shrink: 0;
    background-color: #18181b;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem;
    margin-bottom: 2rem;
}

.sidebar-logo {
    width: 4rem;
}

.sidebar-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.sidebar-subtitle {
    color: #a1a1aa;
    font-size: 0.875rem;
    margin: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.875rem;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.sidebar-link img,
.sidebar-link svg {
    width: 1.2em;
    height: 1.2em;
}

.sidebar-link:hover {
    background-color: #27272a;
    color: white;
}

.sidebar-link.active {
    background-color: #2e2e31;
    color: white;
    font-weight: 500;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid #27272a;
}

.logout-btn {
    width: 100%;
}

main.content {
    margin-left: auto;
    width: calc(100% - 260px - 1rem);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.page-title {
    width: 100%;
}

.card-group {
    display: flex;
    align-items: stretch;
    gap: 3rem;
}

.card {
    background-color: #18181b;
    border-radius: 1rem;
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.card-subtitle {
    font-size: 0.8rem;
    color: #a1a1aa;
    margin: 0 0 1.25rem;
}

.card-btn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 1.25rem;
}

.card-btn-header .card-subtitle {
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;

    &.full {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.btn-primary {
    background-color: #a95609;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary:hover {
    background-color: #8b4b0f;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(0, 0, 0, 0.8);

    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-card {
    width: 600px;
}

.dropzone {
    background-color: #18181b;
    border: 2px dashed #3f3f46;
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;

    &:hover {
        border-color: #52525b;
        background-color: #202023;
    }

    &.dragover {
        border-color: #a95609;
        background-color: rgba(169, 86, 9, 0.08);
    }
}

.dropzone .dropzone-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #71717a;
    transition: color 0.15s ease;
}

.dropzone.dragover .dropzone-icon {
    color: #a95609;
}

.dropzone-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    margin: 0.5rem 0 0;
}

.dropzone-subtitle {
    font-size: 0.8rem;
    color: #a1a1aa;
    margin: 0;
}

.dropzone input[type='file'] {
    display: none;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.photo-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-card-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    opacity: 0;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.photo-card-actions .icon-btn {
    background-color: #18181b;

    &:hover {
        background-color: #27272a;
    }
}
.photo-card:hover .photo-card-actions {
    opacity: 1;
}
