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

/* SIDEBAR STYLES */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    min-height: 100vh;
    width: 92px;
    background-color: #5848CB;
    padding: .4rem .8rem;
    transition: all 0.5s ease;
    z-index: 999;
}

.sidebar.active {
    width: 250px;
}

.sidebar.active ~ .main-content {
    left: 250px;
    width: calc(100% - 250px);
}

.main-content {
    position: relative;
    background-color: white;
    min-height: 100vh;
    top: 0;
    left: 92px;
    transition: all 0.5s ease;
    width: calc(100% - 92px);
    padding: 30px 60px;
    display: flex;
    flex-direction: column;
}

.sidebar #btn {
    position: absolute;
    color: #fff;
    top: 0.8rem;
    left: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.4s ease;
    margin-bottom: 30px;
}

.sidebar .top .logo {
    width: 100%;
    opacity: 1;
    margin-top: 70px;
    margin-bottom: 35px;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-link img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.sidebar.active .logo-link img {
    width: 70px;
    height: 70px;
}

.logo-link span {
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sidebar:not(.active) .logo-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.sidebar.active .logo-link span {
    opacity: 1;
    width: auto;
}

.nav-list {
    margin-top: 35px;
}

.sidebar ul li {
    position: relative;
    list-style-type: none;
    margin: 12px 0;
    line-height: 50px;
    display: flex;
    justify-content: center;
}

.sidebar ul li a {
    color: #fff;
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    border-radius: 0.8rem;
    padding-left: 10px;
    transition: all 0.2s ease;
}

.sidebar ul li a:hover {
    background-color: #fff;
    color: #5848CB;
}

.sidebar ul li a i {
    min-width: 50px;
    text-align: center;
    height: 50px;
    border-radius: 12px;
    line-height: 50px;
    font-size: 1.4rem;
}

.sidebar .nav-item {
    opacity: 0;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.sidebar.active .nav-item {
    opacity: 1;
}

.sidebar ul li .tooltip {
    position: absolute;
    left: 125px;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0.5rem 0.8rem rgba(0, 0, 0, 0.2);
    border-radius: .6rem;
    padding: .4rem 1.2rem;
    line-height: 1.8rem;
    z-index: 20;
    opacity: 0;
    background: white;
    transition: all 0.2s ease;
    pointer-events: none;
}

.sidebar:not(.active) ul li:hover .tooltip {
    opacity: 1;
    left: 110px;
}

.sidebar.active ul li .tooltip {
    display: none;
}

.sidebar.active .top .logo {
    display: flex;
    justify-content: flex-start;
    padding-left: 22px;
}

/* NAVBAR & WORKSPACE CONTROLS */
.top-navbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 50px;
}

.header-right-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-icon-badge {
    position: relative;
    width: 46px;
    height: 46px;
    background-color: #e2e0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #514bce;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.action-icon-badge:hover {
    transform: scale(1.05);
    background-color: #d1cdff;
}

.action-icon-badge i {
    font-size: 22px;
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #7ed321;
    border: 2px solid white;
    border-radius: 50%;
}

.header-divider {
    width: 1px;
    height: 32px;
    background-color: #e0e0e0;
}

.user-profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-profile-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(88, 72, 203, 0.4);
}

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

/* WORKSPACE VIEWPORT */
.workspace-canvas {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1100px;
    width: 100%;
}

.upload-drop-zone {
    width: 360px;
    height: 460px;
    background-color: #e6e4ff;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.25s ease, transform 0.25s ease, border 0.2s ease;
    flex-shrink: 0;
}

.upload-drop-zone:hover {
    background-color: #dad7ff;
    transform: translateY(-2px);
}

.zone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.up-arrow-circle {
    width: 44px;
    height: 44px;
    border: 2.5px solid #514bce;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #514bce;
    margin-bottom: 24px;
}

.up-arrow-circle i {
    font-size: 16px;
}

.instruction-text {
    color: #514bce;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.photo-preview-box {
    display: none;
    width: 100%;
    height: 100%;
}

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

/* DATA CONTROL PANEL FORMS */
.metadata-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    font-size: 16px;
    font-weight: 700;
    color: black;
}

.form-input-element {
    width: 100%;
    background-color: #cbc8ff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #3b34ab;
    outline: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-input-element:focus {
    background-color: #e6e4ff;
    border-color: #5848CB;
}

.form-input-element::placeholder {
    color: #6a64eb;
    opacity: 0.8;
}

.text-area-element {
    height: 140px;
    resize: none;
}

.form-action-footer {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.action-btn {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(1px);
}

.btn-draft {
    background-color: #e9a6d2;
    color: #111111;
}

.btn-publish {
    background-color: #ea54c2;
    color: white;
}

/* MEDIA RESPONSIVENESS OVERRIDES */
@media (max-width: 992px) {
    .workspace-canvas {
        flex-direction: column;
        align-items: center;
    }
    .upload-drop-zone, .metadata-form {
        width: 100%;
        max-width: 500px;
    }
}

@media(max-width: 680px) {
    .sidebar {
        width: 80px;
        padding: 30px 12px;
        align-items: center;
    }
    .main-content {
        padding: 20px;
        left: 80px;
        width: calc(100% - 80px);
    }
}