* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    display: flex;
}

html {
    height: 100%;
}

/* LOGIN */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.login-box {
    background: linear-gradient(135deg, #16213e 0%, #0f1729 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid #1a3a52;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-box h1 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.login-box p {
    color: #999;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.login-input {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    background: #0f1729;
    border: 2px solid #1a3a52;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.login-input:focus {
    outline: none;
    border-color: #3a7aa2;
}

.login-input::placeholder {
    color: #666;
}

.login-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #1a3a52 0%, #0f2238 100%);
    color: white;
    border: 2px solid #1a3a52;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #2a5a82 0%, #1a3a52 100%);
    border-color: #3a7aa2;
}

.error-message {
    color: #ff6b6b;
    margin-top: 1rem;
    display: none;
    font-size: 0.9rem;
}

/* APP */
.app-container {
    width: 100%;
    display: flex;
    height: 100vh;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    background: linear-gradient(135deg, #1a3a52 0%, #0f2238 100%);
    border: none;
    color: white;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 6px;
    flex-direction: column;
    justify-content: space-around;
    padding: 0.5rem;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* SIDEBAR OVERLAY (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 500;
}

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

/* SIDEBAR */
.sidebar {
    width: 320px;
    background: #0f1729;
    border-right: 2px solid #1a3a52;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar-header {
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1a3a52;
}

.sidebar-avatar {
    width: 110px;
    height: 110px;
    border-radius: 55px;
    background: linear-gradient(135deg, #1a3a52 0%, #0f1729 100%);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a3a52;
    overflow: hidden;
}
.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 55px;
    object-position: center 30%;
}

.sidebar-header h1 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.3rem;
}

.sidebar-subtitle {
    color: #888;
    font-size: 0.8rem;
}

/* CONTACT */
.contact-section {
    flex: 1;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1a3a52 0%, #0f2238 100%);
    border-radius: 12px;
    border: 1px solid #1a3a52;
}

.contact-section h3 {
    font-size: 0.85rem;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.contact-value {
    font-size: 0.85rem;
    color: white;
    word-break: break-word;
}

.contact-value a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #1a3a52;
}

.contact-value a:hover {
    border-bottom-color: white;
}

.sidebar-footer {
    border-top: 1px solid #1a3a52;
    padding-top: 1rem;
}

.logout-btn {
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, #1a3a52 0%, #0f2238 100%);
    color: white;
    border: 1px solid #1a3a52;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.8rem;
    font-weight: bold;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #2a5a82 0%, #1a3a52 100%);
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.8rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a3a52 0%, #0f2238 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid #1a3a52;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #1a3a52;
    color: white;
}

/* MAIN */
.main-content {
    flex: 1;
    margin-left: 300px;
    padding: 3rem;
    overflow-y: auto;
    height: 100vh;
}

.hero {
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    color: #999;
    max-width: 600px;
}

/* BLOCKS */
.blocks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.floating-block {
    background: linear-gradient(135deg, #16213e 0%, #0f1729 100%);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #1a3a52;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-block:hover {
    border-color: #2a5a82;
    transform: translateY(-4px);
}

.floating-block.active {
    border-color: #3a7aa2;
    background: linear-gradient(135deg, #1a3a52 0%, #16213e 100%);
}

.block-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.floating-block-title {
    font-weight: bold;
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    width: 100%;
}

.floating-block-content {
    color: #888;
    font-size: 0.9rem;
    display: none;
}

.floating-block.active .floating-block-content {
    display: block;
    color: #ccc;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f1729;
}

::-webkit-scrollbar-thumb {
    background: #1a3a52;
    border-radius: 4px;
}

/* MOBILE - TABLET */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .sidebar {
        width: 100%;
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 600;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        padding-top: 4em;
        height: auto;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .blocks-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hamburger {
        width: 40px;
        height: 40px;
        top: 0.8rem;
        left: 0.8rem;
    }

    .main-content {
        padding: 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .floating-block {
        padding: 1.2rem;
    }

    .login-box {
        padding: 2rem;
    }
}