/* Minimal Orange & White Theme */
:root {
    --orange: #ff6b35;
    --white: #ffffff;
    --cream: #fff8f0;
    --text: #333;
    --border: #ffe4d1;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--orange) 0%, #ff8c5a 100%);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8c5a 0%, var(--orange) 100%);
}

::-webkit-scrollbar-thumb:active {
    background: var(--orange);
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.6);
}

/* Login */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

@media (max-width: 480px) {
    .login-box {
        padding: 20px;
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

.form-control {
    border: 1px solid var(--border);
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    width: 100%;
    font-size: 14px;
    font-family: 'Google Sans', sans-serif;
}

.form-control:focus {
    border-color: var(--orange);
    outline: none;
}

.btn-orange {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Google Sans', sans-serif;
}

.btn-orange:hover {
    opacity: 0.9;
}

.signup-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.signup-hint a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
}

.signup-hint a:hover {
    text-decoration: underline;
}

/* Dashboard */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100vh - 80px);
    width: 240px;
    background: var(--orange);
    color: var(--white);
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 10px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-menu a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 24px;
}

.sidebar-menu a.active {
    background: rgba(255,255,255,0.15);
    border-left: 3px solid var(--white);
    padding-left: 17px;
}

.dropdown-toggle {
    position: relative;
    display: flex !important;
    justify-content: space-between;
}

.dropdown-arrow {
    font-size: 16px !important;
    margin-left: auto;
    transition: transform 0.3s ease;
    width: auto !important;
}

.sidebar-dropdown {
    position: relative;
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.1);
}

.sidebar-dropdown.open .sidebar-submenu {
    max-height: 200px;
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-submenu li {
    margin: 0;
}

.sidebar-submenu a {
    padding: 10px 20px 10px 45px;
    font-size: 13px;
}

.sidebar-submenu a:hover {
    background: rgba(255,255,255,0.08);
    padding-left: 49px;
}

.sidebar-submenu a i {
    font-size: 16px;
}

.sidebar-badge {
    display: inline-block !important;
    background: #e53935 !important;
    color: #fff !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-left: 6px !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
    min-width: 18px !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        top: 70px;
        height: calc(100vh - 70px);
    }

    .sidebar-menu {
        padding: 15px 0;
    }

    .sidebar-menu a span {
        display: none;
    }

    .sidebar-badge {
        display: none;
    }

    .sidebar-menu a {
        justify-content: center;
        padding: 12px;
    }

    .sidebar-menu a:hover {
        padding-left: 12px;
    }

    .sidebar-menu a.active {
        padding-left: 12px;
        border-left-width: 3px;
    }

    .dropdown-arrow {
        display: none;
    }

    .sidebar-dropdown .dropdown-toggle {
        pointer-events: none;
    }

    .sidebar-submenu {
        display: none;
    }
}

@media (max-width: 480px) {
    .sidebar {
        transform: translateX(-100%);
        width: 240px;
        z-index: 1100;
        transition: transform 0.3s ease;
        top: 0;
        height: 100vh;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar.active .sidebar-menu a span {
        display: inline;
    }

    .sidebar.active .sidebar-badge {
        display: inline-block !important;
    }

    .sidebar.active .sidebar-menu a {
        justify-content: flex-start;
        padding: 12px 20px;
    }

    .sidebar.active .sidebar-menu a:hover {
        padding-left: 24px;
    }

    .sidebar.active .sidebar-menu a.active {
        padding-left: 17px;
    }

    .sidebar.active .dropdown-arrow {
        display: inline;
    }

    .sidebar.active .sidebar-dropdown .dropdown-toggle {
        pointer-events: auto;
    }

    .sidebar.active .sidebar-submenu {
        display: block;
    }
}

.main-content {
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    width: 100%;
}

.topbar {
    background: var(--white);
    padding: 15px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: 80px;
}

.container {
    padding: 30px;
    margin-left: 240px;
    margin-top: 80px;
}

@media (max-width: 1200px) {
    .container {
        padding: 25px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        margin-left: 70px;
        margin-top: 70px;
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        margin-left: 0;
        margin-top: 58px;
        padding: 15px 10px;
    }
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(255, 107, 53, 0.1);
}

.hamburger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--orange);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.topbar-logo {
    max-height: 50px;
    height: auto;
    max-width: 250px;
    object-fit: contain;
}

.topbar h3 {
    margin: 0;
    color: var(--text);
}

.topbar-user {
    display: flex;
    gap: 12px;
    align-items: center;
}

.profile-dropdown {
    position: relative;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-family: 'Google Sans', sans-serif;
}

.profile-button:hover {
    background: rgba(255, 107, 53, 0.1);
}

.username {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.profile-button i {
    font-size: 20px;
    color: var(--text);
    transition: color 0.3s ease;
}

.arrow-icon {
    font-size: 16px !important;
    transition: transform 0.3s ease;
}

.profile-button:hover i {
    color: var(--orange);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 14px;
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a i {
    font-size: 18px;
    color: var(--text);
}

.dropdown-menu a:hover {
    background: rgba(255, 107, 53, 0.1);
}

.dropdown-menu a:hover i {
    color: var(--orange);
}

@media (max-width: 768px) {
    .topbar {
        padding: 12px 20px;
        min-height: 70px;
    }

    .topbar-left {
        gap: 16px;
    }

    .topbar-logo {
        max-height: 35px;
        max-width: 180px;
    }

    .topbar h3 {
        font-size: 18px;
    }

    .username {
        font-size: 13px;
    }

    .profile-button {
        padding: 6px 10px;
    }

    .dropdown-menu {
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 10px 15px;
        min-height: 58px;
    }

    .hamburger-menu {
        display: flex;
    }

    .topbar-logo {
        max-width: 140px;
        max-height: 28px;
    }

    .username {
        display: none;
    }

    .profile-button {
        padding: 4px 8px;
    }

    .profile-button i {
        font-size: 18px;
    }

    .arrow-icon {
        font-size: 14px !important;
    }

    .dropdown-menu {
        min-width: 140px;
        right: -10px;
    }

    .dropdown-menu a {
        padding: 10px 12px;
        font-size: 13px;
    }

    .dropdown-menu a i {
        font-size: 16px;
    }
}

.section-title {
    color: var(--text);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.announcement-card {
    background: var(--white);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-left: 4px solid var(--orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.announcement-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--orange) 0%, #ff8c5a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-icon i {
    font-size: 28px;
    color: var(--white);
}

.announcement-content {
    flex: 1;
    min-width: 0;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 16px;
}

.announcement-card h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.announcement-date {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-card p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .announcement-card {
        padding: 20px;
        gap: 16px;
    }

    .announcement-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .announcement-icon i {
        font-size: 24px;
    }

    .announcement-card h3 {
        font-size: 16px;
    }

    .announcement-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .announcement-date {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 18px;
    }

    .announcement-card {
        padding: 16px;
        gap: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .announcement-card:hover {
        transform: translateY(-2px);
    }

    .announcement-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .announcement-content {
        width: 100%;
    }

    .announcement-header {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .announcement-card h3 {
        font-size: 15px;
        text-align: center;
    }

    .announcement-card p {
        font-size: 13px;
    }
}

/* Activity Log */
.activity-log {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 30px;
    border: 1px solid var(--border);
}

.activity-item {
    display: grid;
    grid-template-columns: 60px 1fr 100px 120px;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.activity-item:nth-child(even) {
    background: rgba(255, 248, 240, 0.3);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--cream);
    padding-left: 28px;
    box-shadow: inset 4px 0 0 var(--orange);
}

.activity-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    font-size: 20px;
    color: var(--orange);
    transition: all 0.3s ease;
}

.activity-item:hover .activity-icon {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.1);
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 8px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.dot-success {
    background: #10b981;
}

.dot-info {
    background: #3b82f6;
}

.dot-warning {
    background: #f59e0b;
}

.dot-danger {
    background: #ef4444;
}

.activity-news {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

.activity-time {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
    text-align: right;
    font-weight: 500;
}

.activity-type {
    display: flex;
    justify-content: flex-end;
}

.ribbon {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--white);
    background: var(--orange);
}

.ribbon-success {
    background: #10b981;
}

.ribbon-info {
    background: #3b82f6;
}

.ribbon-warning {
    background: #f59e0b;
}

.ribbon-danger {
    background: #ef4444;
}

@media (max-width: 768px) {
    .activity-item {
        grid-template-columns: 50px 1fr 100px;
        gap: 12px;
        padding: 16px 20px;
    }

    .activity-item:hover {
        padding-left: 24px;
    }

    .activity-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .activity-icon-wrapper {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .activity-news {
        grid-column: 2;
        grid-row: 1;
        font-size: 13px;
    }

    .activity-type {
        grid-column: 3;
        grid-row: 1;
    }

    .activity-time {
        grid-column: 2 / 4;
        grid-row: 2;
        font-size: 12px;
        text-align: left;
    }

    .ribbon {
        padding: 4px 10px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .activity-log {
        margin-top: 20px;
        border: none;
    }

    .activity-item {
        grid-template-columns: 44px 1fr;
        gap: 12px;
        padding: 14px 16px;
    }

    .activity-item:hover {
        padding-left: 20px;
    }

    .activity-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .activity-dot {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }

    .activity-icon-wrapper {
        grid-column: 1;
        grid-row: 1 / 4;
        align-self: start;
    }

    .activity-news {
        grid-column: 2;
        grid-row: 1;
        font-size: 13px;
    }

    .activity-time {
        grid-column: 2;
        grid-row: 2;
        font-size: 11px;
        text-align: left;
        margin-top: 4px;
    }

    .activity-type {
        grid-column: 2;
        grid-row: 3;
        justify-content: flex-start;
        margin-top: 8px;
    }

    .ribbon {
        padding: 3px 8px;
        font-size: 9px;
    }
}
