﻿* {
    position: relative;
    font-family: sans-serif;
}

div {
    overflow: hidden;
    box-sizing: border-box;
}

/* Mobile (default) */
.group-box {
    float: left;
    width: 19%;
    margin: 0.5%;
}

a{text-decoration:none;color:#808080}

/* Tablet (2 columns) */
@media screen and (min-width: 300px) {
    .group-box {
        width: 99%;
        margin: 0.5%;
    }
}

/* Desktop (5 columns) */
@media screen and (min-width: 1200px) {
    .group-box {
        float: left;
        width: 19%;
        margin: 0.5%;
    }
}

.form-container {
    position: absolute;
    visibility: hidden;
    top: 30px;
    left: 300px;
    width: 380px;
    background: #fff;
    padding: 20px;
    padding-bottom: 80px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.gender {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.gender label {
    font-weight: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, #eef2ff, #f9fafb);
}

/* ================= HEADER ================= */
.header {
    height: 64px;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

.logo {
}
.logo svg{margin-top:10px}

.nav {
    display: flex;
    gap: 28px;
}

    .nav a {
        text-decoration: none;
        color: #000;
        font-size: 17px;
    }

/* ================= APP ================= */
.app {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* ================= DRAWER ================= */
.drawer {
    border-right: 1px solid var(--border);
    width: auto;
    transition: width 0.25s ease, transform 0.3s ease;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff, #f9fafb);
}

    .drawer.collapsed {
        width: var(--drawer-collapsed);
    }

.drawer-inner {
    padding: 16px;
}

/* ===== CREATE GROUP BUTTON ===== */
.create-group-btn {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #5f8dd3;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

    .create-group-btn:hover {
        background: #5f8dd3;
    }

    .create-group-btn:active {
        transform: scale(0.97);
    }

/* ===== DRAWER COLLAPSED STATE ===== */
.drawer.collapsed .create-group-btn {
    padding: 10px;
    font-size: 0;
}

    .drawer.collapsed .create-group-btn::after {
        content: "+";
        font-size: 20px;
        color: #fff;
    }


/* ===== DROPDOWN ===== */
.dropdown {
    margin-bottom: 16px;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
}

    .dropdown-header:hover {
        background: #f2f2f2;
    }

.chevron {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.dropdown.open .chevron {
    transform: rotate(90deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown.open .dropdown-content {
    max-height: 100%;
    overflow:auto;
}

/* Hide titles when drawer collapsed */
.drawer.collapsed .dropdown-header span,
.drawer.collapsed .group-name,
.drawer.collapsed .chevron {
    display: none;
}

/* ===== GROUP ITEMS ===== */
.group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

    .group-item:hover {
        background: #f1f1f1;
    }

.group-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ================= CONTENT ================= */
.content {
    flex: 1;
    padding: 10px;
    ;
}

/* ===== GROUP HEADER (NO BOX) ===== */
.group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

    .group-header h2 {
        font-size: 24px;
    }

    .group-header p {
        color: var(--muted);
    }

/* ===== AVATARS ===== */
.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ===== CREATE POST ===== */
.create-post {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 10px;
}

    .create-post input {
        flex: 1;
        padding: 14px;
        border-radius: 8px;
        border: 1px solid var(--border);
    }

/* ===== ICON BUTTONS ===== */
.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

    .icon-btn:hover {
        background: #f1f1f1;
    }

/* ===== POST FILTER BUTTONS ===== */
.post-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

    .filter-btn.active {
        background: #000;
        color: #fff;
        border-color: #000;
    }


/* ===== POST ===== */
.post {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 10px;
}

.post-content {
    border: 1px dashed var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: left;
    color: var(--muted);
    padding:10px;
}

.post-footer {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    color: var(--muted);
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
    .drawer {
        position: fixed;
        top: 64px;
        left: 0;
        height: calc(100% - 64px);
        transform: translateX(-100%);
        z-index: 20;
    }

        .drawer.open {
            transform: translateX(0);
        }

    .content {
        padding: 20px;
    }
}

.card {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    animation: fadeIn 0.4s ease-in-out;
    margin:15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.input1[type="text"],
.textarea1,
.select1 {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    background: #fff;
}

.textarea2 {
    min-height: 90px;
    resize: none;
}

    .input1:focus,
    .textarea2:focus,
    .select1:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    }

.upload-box {
    border: 2px dashed #c7d2fe;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    color: #6366f1;
    font-size: 14px;
    transition: 0.2s;
    background: #f8faff;
}

    .upload-box:hover {
        background: #eef2ff;
    }

    .upload-box input {
        display: none;
    }

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 14px;
    color: #374151;
}

    .checkbox input {
        width: 18px;
        height: 18px;
        accent-color: #6366f1;
    }

    .checkbox label {
        padding-top: 0px;
    }

.button1 {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: linear-gradient(135deg, #5f8dd3, #5f8dd3);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
}

    .button1:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(99,102,241,0.35);
    }

@media (max-width: 480px) {
    .card {
        padding: 22px 22px;
    }

    .title {
        font-size: 20px;
    }
}


.create-post {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    width:100%;
}

    .create-post form {width:100%}
    /* ===============================
   TEXTAREA
================================ */
    .create-post textarea {
        width: 100%;
        resize: none;
        padding: 12px 14px;
        border-radius: 10px;
        border: 1px solid #ddd;
        font-size: 14px;
        outline: none;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

        .create-post textarea:focus {
            border-color: #4facfe;
            box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
        }

/* ===============================
   ACTIONS BAR
================================ */
.post-actions {
    display: block;
    align-items: flex-start;
    margin-top: 10px;
}

    /* File input */
    .post-actions input[type="file"] {
        font-size: 13px;
    }

/* ===============================
   SEND BUTTON
================================ */
.send-btn {
    background: linear-gradient(135deg, #5f8dd3, #5f8dd3);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .send-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    }

/* ===============================
   DOCUMENT SECTION
================================ */
/* ===============================
   ADD DOCUMENT CARD
================================ */
.add-document-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 10px;
}

    .add-document-card h1 {
        font-size: 20px;
        margin-bottom: 15px;
        color: #333;
    }

    /* ===============================
   FORM FIELDS
================================ */
    .add-document-card input[type="text"],
    .add-document-card textarea {
        width: 100%;
        padding: 11px 14px;
        margin-bottom: 15px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 14px;
    }

    .add-document-card textarea {
        resize: none;
    }

        .add-document-card input:focus,
        .add-document-card textarea:focus {
            outline: none;
            border-color: #4facfe;
            box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
        }

    /* ===============================
   FILE INPUT
================================ */
    .add-document-card input[type="file"] {
        margin-bottom: 15px;
        font-size: 13px;
    }

/* ===============================
   UPLOAD BUTTON
================================ */
.upload-btn {
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

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

/* ===============================
   DOCUMENT GALLERY
================================ */
.document-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-container {
    width: 380px;
    background: #fff;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h2 {
        margin: 0;
        color: #333;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-size: 13px;
        color: #555;
        margin-bottom: 6px;
        display: block;
    }

.input-box {
    position: relative;
}

    .input-box input {
        width: 100%;
        padding: 12px 14px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 14px;
        transition: 0.3s;
    }

        .input-box input:focus {
            border-color: #4facfe;
            box-shadow: 0 0 0 2px rgba(79,172,254,0.2);
            outline: none;
        }

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cancel {
    background: #f1f1f1;
    color: #333;
}

    .btn-cancel:hover {
        background: #e2e2e2;
    }

.btn-signin {
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    color: #fff;
    font-weight: 600;
}

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

/* ===============================
   ADD PHOTO CARD
================================ */
.add-photo-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
}

    .add-photo-card h1 {
        font-size: 20px;
        margin-bottom: 15px;
        color: #333;
    }

    /* ===============================
   FORM FIELDS
================================ */
    .add-photo-card input[type="text"],
    .add-photo-card textarea {
        width: 100%;
        padding: 11px 14px;
        margin-bottom: 15px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 14px;
    }

    .add-photo-card textarea {
        resize: none;
    }

        .add-photo-card input:focus,
        .add-photo-card textarea:focus {
            outline: none;
            border-color: #4facfe;
            box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
        }

    /* ===============================
   FILE INPUT
================================ */
    .add-photo-card input[type="file"] {
        margin-bottom: 15px;
        font-size: 13px;
    }

/* ===============================
   UPLOAD BUTTON
================================ */
.upload-btn {
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

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

/* ===============================
   PHOTO GALLERY
================================ */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.form-container {
    width: 420px;
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    font-family: "Segoe UI", Arial, sans-serif;
}

    .form-container h2 {
        text-align: center;
        margin-bottom: 25px;
        color: #333;
    }

    .form-container label {
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
        font-weight: 600;
        color: #555;
    }

    .form-container input[type="text"],
    .form-container input[type="email"],
    .form-container input[type="tel"],
    .form-container input[type="password"],
    .form-container input[type="date"] {
        width: 100%;
        padding: 11px 14px;
        margin-bottom: 18px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 14px;
        transition: 0.3s;
    }

    .form-container input:focus {
        outline: none;
        border-color: #4facfe;
        box-shadow: 0 0 0 2px rgba(79,172,254,0.2);
    }

.gender {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

    .gender input {
        margin-right: 6px;
    }

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

    .actions button {
        padding: 10px 18px;
        border-radius: 8px;
        border: none;
        font-size: 14px;
        cursor: pointer;
        transition: 0.3s;
    }

        .actions button[type="reset"] {
            background: #e0e0e0;
            color: #333;
        }

        .actions button[type="submit"] {
            background: linear-gradient(135deg, #4facfe, #00c6ff);
            color: #fff;
            font-weight: 600;
        }

        .actions button:hover {
            opacity: 0.9;
        }