/* Silkwood Portal Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #618b67;
    min-height: 100vh;
    padding: 1rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    margin: 6px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-image {
    height: 45px;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo-image:hover {
    transform: scale(1.05);
}

.social-icons {
    display: flex;
    gap: 0.875rem;
}

.social-icons a {
    color: white;
    font-size: 1.3rem;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* Main Container */
.main-container {
    background: #f5f5f5;
    border-radius: 24px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* Pills Navigation */
.pills-nav {
    background: white;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    background: #8ba99a;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.pill.active {
    background: #618b67;
}

.pill:hover {
    background: #618b67;
    transform: translateY(-2px);
}

/* Content Area */
.content {
    background: white;
    padding: 2rem;
    min-height: 500px;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.app-card {
    background: linear-gradient(135deg, #f3f3f7 0%, #f5f6f8 100%);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.app-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.app-card:hover .app-icon {
    transform: scale(1.1);
}

.app-title {
    font-weight: 700;
    font-size: 1rem;
    color: #16477B;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.app-subtitle {
    font-size: 0.85rem;
    color: #5499C7;
    font-weight: 500;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #16477B;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: #f0f0f0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.show-modal {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal.show-modal .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #16477B;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.modal-link {
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 12px;
    color: #16477B;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
}

.modal-link:hover {
    background: #618b67;
    color: white;
    transform: translateY(-4px);
}

/* Action Links - Simple text links without boxes */
.action-links {
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 1rem auto 0;
    text-align: center;
}

.action-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 1rem;
    transition: all 0.3s;
}

.action-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.action-link i {
    font-size: 1.1rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    padding: 2rem;
    transition: left 0.4s;
    z-index: 3000;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #618b67;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    color: #333;
    text-decoration: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    background: #f8f8f8;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background: #618b67;
    color: white;
    transform: translateX(4px);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 2999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .header {
        padding: 0.75rem 0 1rem;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .social-icons a {
        font-size: 1.25rem;
    }

    .pills-nav {
        padding: 1rem;
        gap: 0.5rem;
    }

    .pill {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .content {
        padding: 1.5rem 1rem;
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .app-card {
        padding: 2rem 1rem;
        min-height: 160px;
    }

    .app-icon {
        font-size: 2.5rem;
    }

    .app-title {
        font-size: 0.9rem;
    }

    .app-subtitle {
        font-size: 0.75rem;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .action-link {
        display: block;
        margin: 0.5rem 0;
    }
}