/* =====================================================
   GLOBAL RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: #f4f6f9;
}

/* =====================================================
   AUTH PAGES
===================================================== */
.auth-body {
    background: linear-gradient(135deg, #141e30, #243b55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.container h1,
.container h2 {
    margin-bottom: 15px;
    color: #1e3c72;
}

.container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

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

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

input:focus, select:focus {
    border-color: #0072ff;
    box-shadow: 0 0 6px rgba(0,114,255,0.3);
    outline: none;
}

button, .btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0072ff, #0056d2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

button:hover, .btn:hover {
    opacity: 0.9;
}

.error-message {
    background: #ffe5e5;
    color: #c00;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
}

/* =====================================================
   PREMIUM DASHBOARD LAYOUT
===================================================== */
.premium-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #141e30, #243b55);
}

/* Sidebar */
.premium-sidebar {
    width: 260px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.brand {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 2px;
}

.brand-sub {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

.premium-nav {
    list-style: none;
    margin-top: 40px;
}

.premium-nav li {
    padding: 12px;
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
}

.premium-nav li:hover,
.premium-nav li.active {
    background: rgba(255,255,255,0.15);
}

.premium-nav a {
    color: white;
    text-decoration: none;
}

.sidebar-user {
    font-size: 13px;
}

.logout-link {
    display: block;
    margin-top: 10px;
    color: #ff6b6b;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

/* =====================================================
   MAIN CONTENT AREA
===================================================== */
.premium-main {
    flex: 1;
    padding: 50px;
    color: white;
}

/* =====================================================
   FAMILY CARDS (Dashboard)
===================================================== */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.family-card-link {
    text-decoration: none;
    color: inherit;
}

.family-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    transition: 0.3s;
}

.family-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

/* =====================================================
   PROFILE PAGE
===================================================== */
.premium-profile-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    padding: 45px;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 45px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: fadeIn 0.4s ease;
}

.profile-large-premium {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    margin-bottom: 20px;
    transition: 0.3s;
}

.profile-large-premium:hover {
    transform: scale(1.05);
}

.upload-form input[type="file"] {
    background: white;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

/* =====================================================
   PROFILE DATA SECTIONS
===================================================== */
.premium-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.glass-section {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: 0.3s;
    color: white;
}

.glass-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

.glass-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.data-card {
    background: rgba(255,255,255,0.12);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.add-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 10px;
    color: white;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

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

/* =====================================================
   ANIMATION
===================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    .premium-layout {
        flex-direction: column;
    }

    .premium-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .premium-main {
        padding: 25px;
    }

    .family-grid,
    .premium-section {
        grid-template-columns: 1fr;
    }

    .profile-large-premium {
        width: 130px;
        height: 130px;
    }
}
/* =====================================================
   LIGHT PROFILE LAYOUT (For profile.php)
===================================================== */

.light-profile-body {
    background: #f4f6f9;
}

.profile-layout {
    display: flex;
    gap: 30px;
    padding: 50px;
}

/* LEFT PROFILE CARD */
.profile-sidebar-card {
    width: 300px;
    background: white;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 20px;
}

.profile-contact p {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}

/* RIGHT CONTENT */
.profile-content {
    flex: 1;
}

.section-title {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

/* CATEGORY GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.category-card {
    background: #e9ecef;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.category-card:hover {
    background: #d6d8db;
}

.category-card.active {
    background: #00c853;
    color: white;
}

/* INTEREST INPUT */
.interest-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.interest-input input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.interest-input button {
    width: auto;
    padding: 10px 15px;
    border-radius: 8px;
}

/* TAGS */
.interest-tags span {
    display: inline-block;
    background: #e9ecef;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin: 5px 5px 0 0;
}

/* ACTIVITY */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.activity-card {
    height: 150px;
    background: #ddd;
    border-radius: 18px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .profile-layout {
        flex-direction: column;
        padding: 25px;
    }

    .profile-sidebar-card {
        width: 100%;
    }
}
/* =====================================================
   PROFILE HEADER WITH SIDEBAR
===================================================== */

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-avatar-premium {
    width: 130px;
    height: 130px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid white;
}

.profile-sub {
    opacity: 0.7;
    margin: 8px 0 15px;
}

/* =====================================================
   PROFILE TABS NAVIGATION
===================================================== */

.profile-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    font-size: 14px;
}

.tab:hover,
.tab.active {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

/* =====================================================
   PROFILE CONTENT SECTIONS
===================================================== */

.profile-section {
    margin-bottom: 50px;
}

.profile-section h3 {
    margin-bottom: 15px;
}

/* CATEGORY */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.category-card {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.category-card:hover {
    background: rgba(255,255,255,0.2);
}

.category-card.active {
    background: linear-gradient(135deg, #00c853, #009624);
}

/* INTERESTS */
.interest-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.interest-input input {
    flex: 1;
}

.interest-tags span {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin: 5px 5px 0 0;
}

/* ACTIVITY */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.activity-card {
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-tabs {
        flex-wrap: wrap;
    }
}
/* =====================================================
   PROFILE FINANCIAL SECTIONS
===================================================== */

.profile-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.tab {
    padding: 8px 18px;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
    font-size: 13px;
    transition: 0.3s;
}

.tab:hover,
.tab.active {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.profile-section {
    margin-bottom: 50px;
}

.profile-section h3 {
    margin-bottom: 15px;
    font-size: 17px;
}

.data-card {
    background: rgba(255,255,255,0.12);
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.add-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    font-size: 13px;
    text-decoration: none;
    transition: 0.3s;
}

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