/* Reset & Base */
html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

/* Sticky Header */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Header */
header {
    background-color: #E48b30;
    text-align: center;
    padding: 0;
    margin: 0;
}

header img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Navigation */
nav {
    background-color: #EDB274;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.nav-button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #1e3a8a;
    color: white;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    flex: 1 1 calc(50% - 1rem);
    max-width: 220px;
    text-align: center;
    box-sizing: border-box;
}

.nav-button:hover {
    background-color: #f97316;
}

.nav-button.pro {
    background-color: #d97706;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.nav-button.pro:hover {
    background-color: #facc15;
    color: #000;
}

/* Content Area */
.content {
    max-width: 90%;
    margin: 1rem auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Form Inputs Styling */
input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fefefe;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 5px rgba(30, 58, 138, 0.3);
    outline: none;
}

textarea {
    resize: vertical;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
    margin-top: 1rem;
}

input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #1e3a8a;
}

form button[type="submit"] {
    background-color: #1e3a8a;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

form button[type="submit"]:hover {
    background-color: #f97316;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item-tile {
    display: flex;
    align-items: center;
    background-color: #fff7f0;
    border: 1px solid #ffcc99;
    border-radius: 8px;
    padding: 10px;
}

.activity-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.activity-content {
    flex-grow: 1;
}

.timestamp {
    font-size: 0.85rem;
    color: #666;
}

/* MyOrg Layout */
.org-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.org-groups {
    flex: 1;
    min-width: 250px;
    max-height: 600px;
    overflow-y: auto;
    border-right: 2px solid #ccc;
    padding-right: 1rem;
}

.org-groups h3,
.org-colleagues h3 {
    margin-top: 0;
}

.group-section ul {
    list-style: none;
    padding-left: 0;
}

.group-section li {
    margin-bottom: 0.5rem;
}

.group-section a {
    color: #1e3a8a;
    text-decoration: none;
}

.group-section a:hover {
    text-decoration: underline;
}

.org-colleagues {
    flex: 2;
    min-width: 300px;
}

.colleague-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.colleague-card {
    text-align: center;
    background-color: #fff7f0;
    border: 1px solid #ffcc99;
    border-radius: 8px;
    padding: 0.5rem;
}

.colleague-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

/* My Groups Layout */
.my-groups-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.group-tiles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.group-tile {
    background-color: #fff7f0;
    border: 1px solid #ffcc99;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
}

.group-tile h3 {
    margin-top: 0;
}

.group-tile a {
    color: #1e3a8a;
    text-decoration: none;
}

.group-tile a:hover {
    text-decoration: underline;
}

.agenda-sidebar {
    background-color: #fef3c7;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #fcd34d;
    order: -1;
}

.agenda-sidebar ul {
    list-style: none;
    padding: 0;
}

.agenda-sidebar li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Social Login Buttons */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: bold;
    width: 100%;
    max-width: 400px;
}

.social-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-button:hover {
    background-color: #e2e2e2;
}

.pro-email {
    background-color: #1e3a8a;
    color: white;
}

.pro-email:hover {
    background-color: #f97316;
}

/* Responsive */
@media (min-width: 769px) {
    .my-groups-layout {
        flex-direction: row;
    }

    .group-tiles {
        flex: 3;
    }

    .agenda-sidebar {
        flex: 1;
        order: 0;
    }
}

@media (max-width: 768px) {
    nav {
        gap: 0.25rem;
        padding: 0.25rem 0.5rem;
    }

    .nav-button {
        flex: 1 1 100%;
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
        max-width: 100%;
    }

    header img {
        max-height: 120px;
    }

    .activity-avatar {
        width: 45px;
        height: 45px;
    }

    .colleague-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .org-layout {
        flex-direction: column;
    }

    .org-groups {
        border-right: none;
        border-bottom: 2px solid #ccc;
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .social-button {
        max-width: 100%;
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }

    .social-button img {
        width: 20px;
        height: 20px;
    }
}

/* Focus */
button:focus, .nav-button:focus {
    outline: none;
}
