/* iLove Main Styles */

body{
    margin:0;
    font-family:Arial,sans-serif;
    background:#f5f5f5;
}

a{
    text-decoration:none;
    color:inherit;
}

*{
    box-sizing:border-box;
}

.topbar{
    background:#e91e63;
    color:#fff;
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.layout{
    display:flex;
}

.content{
    flex:1;
    padding:20px;
}

.sidebar{
    width:220px;
    background:#fff;
    border-left:1px solid #ddd;
    min-height:100vh;
    padding:20px;
}

.logout-btn{
    background:#ffffff;
    color:#e91e63;
    border:none;
    padding:10px 16px;
    border-radius:8px;
    cursor:pointer;
    font-size:14px;
    font-weight:bold;
    transition:.3s;
}

.logout-btn:hover{
    background:#ffe4ee;
}

.sidebar h2{
    margin-top:0;
    margin-bottom:25px;
    color:#e91e63;
}

.sidebar nav a{
    display:block;
    padding:12px 15px;
    margin-bottom:8px;
    border-radius:10px;
    color:#444;
    transition:all .25s ease;
}

.sidebar nav a:hover{
    background:#e91e63;
    color:#fff;
}

.sidebar nav p{
    margin:0;
}

/* Couple Profile */

.profile-page{
    max-width:900px;
    margin:auto;
}

.profile-cover{
    height:280px;
    overflow:hidden;
    border-radius:20px;
    background:#ddd;
}

.profile-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.cover-placeholder{
    width:100%;
    height:100%;
    background:linear-gradient(135deg,#e91e63,#ff80ab);
}

.profile-header{
    display:flex;
    align-items:center;
    gap:25px;
    background:#fff;
    padding:25px;
    margin-top:-60px;
    position:relative;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.profile-avatar{
    width:130px;
    height:130px;
    border-radius:50%;
    overflow:hidden;
    background:#eee;
    border:5px solid #fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:50px;
}

.profile-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.profile-info h2{
    margin:0 0 10px;
    color:#e91e63;
}

.edit-btn{
    display:inline-block;
    margin-top:10px;
    background:#e91e63;
    color:#fff;
    padding:10px 18px;
    border-radius:10px;
}

.profile-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-top:25px;
}

.profile-cards .card{
    background:#fff;
    padding:20px;
    text-align:center;
    border-radius:15px;
    box-shadow:0 3px 12px rgba(0,0,0,.06);
}

.profile-cards strong{
    display:block;
    font-size:30px;
    color:#e91e63;
}

@media(max-width:700px){

    .profile-header{
        flex-direction:column;
        text-align:center;
        margin-top:-40px;
    }

    .profile-cards{
        grid-template-columns:repeat(2,1fr);
    }

    .profile-cover{
        height:200px;
    }

}



.dashboard-page{

max-width:1000px;
margin:auto;
padding:20px;

}


.welcome-card{

background:linear-gradient(135deg,#ff5c8a,#ff9bb8);

color:white;

padding:35px;

border-radius:30px;

text-align:center;

margin-bottom:30px;

box-shadow:0 10px 30px rgba(255,92,138,.3);

}



.dashboard-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:20px;

}



.dashboard-card{

background:rgba(255,255,255,.9);

padding:25px;

border-radius:25px;

text-align:center;

box-shadow:0 5px 20px rgba(0,0,0,.08);

}



.dashboard-card .icon{

font-size:45px;

}



.dashboard-card h3{

color:#e91e63;

}



.dashboard-card a{

display:inline-block;

margin-top:15px;

padding:10px 25px;

border-radius:25px;

background:#ff5c8a;

color:white;

text-decoration:none;

}




body{
    margin:0;
    background:#faf7f9;
    font-family:Arial,Tahoma,sans-serif;
}


/* الشريط العلوي */

.topbar{
    height:80px;
    background:linear-gradient(135deg,#ed1761,#ff6b9d);
    color:white;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 30px;
}


.logo{
    font-size:28px;
    font-weight:bold;
}


.couple-name{
    font-size:20px;
}


.logout-btn{
    background:white;
    color:#ed1761;
    border:none;
    padding:12px 25px;
    border-radius:20px;
    cursor:pointer;
}



/* الهيكل */

.love-layout{

display:flex;
min-height:calc(100vh - 130px);

}



.love-sidebar{

width:260px;
background:white;
box-shadow:-5px 0 20px rgba(0,0,0,.05);
padding:25px 15px;

}



.love-content{

flex:1;
padding:35px;

}



/* الكروت */

.dashboard-grid{

display:grid;
grid-template-columns:repeat(2,1fr);
gap:25px;

}


.dashboard-card{

background:white;
border-radius:30px;
padding:35px 20px;
text-align:center;
box-shadow:0 10px 30px rgba(0,0,0,.08);

}


.dashboard-card .icon{

font-size:50px;
margin-bottom:15px;

}


.dashboard-card h3{

color:#ed1761;
font-size:22px;

}


.dashboard-card a{

background:#ff5c8a;
color:white;
padding:12px 30px;
border-radius:30px;
text-decoration:none;
display:inline-block;
margin-top:15px;

}



/* الترحيب */

.welcome-card{

background:linear-gradient(135deg,#ff5c8a,#ff9bb8);
color:white;
border-radius:35px;
padding:45px;
text-align:center;
margin-bottom:30px;

}


.welcome-card h1{

font-size:32px;

}


/* الفوتر */

.love-footer{

text-align:center;
padding:20px;
color:#e91e63;

}



/* موبايل */

@media(max-width:768px){

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


.love-sidebar{
width:auto;
}


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

}



@media(max-width:768px){

.love-content{
    padding:15px;
}


.welcome-card{
    padding:25px 15px;
    border-radius:25px;
}


.welcome-card h1{
    font-size:24px;
}


.dashboard-grid{
    grid-template-columns:1fr;
    gap:15px;
}


.dashboard-card{
    padding:25px 15px;
    border-radius:25px;
    min-height:auto;
}


.dashboard-card .icon{
    font-size:38px;
}


.dashboard-card h3{
    font-size:20px;
    margin:10px 0;
}


.dashboard-card p{
    font-size:16px;
}


.dashboard-card a{
    padding:10px 25px;
}


.love-footer{
    font-size:14px;
}

}


@media(max-width:768px){

.love-layout{
    display:block;
}


.love-sidebar{
    display:none;
}


.love-content{
    width:100%;
    padding:15px;
}


.topbar{
    height:65px;
    padding:0 15px;
}


.logo{
    font-size:22px;
}


.couple-name{
    font-size:14px;
}


.logout-btn{
    padding:8px 12px;
    font-size:12px;
}


.welcome-card{
    margin-top:10px;
    padding:30px 15px;
}


.welcome-card h1{
    font-size:26px;
}


.dashboard-card{
    padding:25px 15px;
}


}


@media(max-width:768px){

.dashboard-grid{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}


.dashboard-card{
    padding:20px 10px;
}


.dashboard-card .icon{
    font-size:35px;
}


.dashboard-card h3{
    font-size:16px;
}


.dashboard-card p{
    font-size:13px;
}


.dashboard-card a{
    padding:8px 15px;
    font-size:13px;
}

}


@media(max-width:768px){

.love-content .dashboard-grid{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:15px !important;
}


.love-content .dashboard-card{
    width:auto !important;
}


}


/* Final mobile dashboard fix */

@media(max-width:768px){

    .love-layout{
        display:block !important;
    }

    .love-sidebar{
        display:none !important;
    }

    .love-content{
        width:100% !important;
        padding:15px !important;
    }

    .dashboard-grid{
        display:grid !important;
        grid-template-columns:repeat(2, 1fr) !important;
        gap:15px !important;
    }

    .dashboard-card{
        width:100% !important;
        padding:20px 10px !important;
    }

}


@media(max-width:768px){

.dashboard-card{
    padding:15px 8px !important;
    min-height:220px;
}


.dashboard-card .icon{
    font-size:32px !important;
    margin-bottom:8px;
}


.dashboard-card h3{
    font-size:17px !important;
    margin:8px 0;
}


.dashboard-card p{
    font-size:13px !important;
    line-height:1.6;
}


.dashboard-card a{
    padding:8px 18px !important;
    margin-top:10px;
    font-size:13px;
}

}


body{
    background:
    linear-gradient(rgba(255,245,250,.92),rgba(255,245,250,.92)),
    url('/images/love-bg.jpg');
    background-size:cover;
    background-attachment:fixed;
}


.dashboard-card{
    transition:.3s;
}


.dashboard-card:hover{
    transform:translateY(-5px);
}


.welcome-card{
    box-shadow:0 15px 35px rgba(233,30,99,.25);
}


.topbar{
    box-shadow:0 5px 20px rgba(233,30,99,.25);
}



body{
    background:#fff5fa !important;
}


.dashboard-card{
    background:rgba(255,255,255,.95) !important;
    border-radius:28px !important;
    box-shadow:0 8px 25px rgba(233,30,99,.12) !important;
    border:1px solid rgba(255,92,138,.15);
}


.welcome-card{
    background:linear-gradient(135deg,#ff4f87,#ff9fc0) !important;
    border-radius:35px !important;
    box-shadow:0 15px 40px rgba(255,80,140,.3) !important;
}


@media(max-width:768px){

.topbar{
    background:linear-gradient(135deg,#e91e63,#ff7aa8) !important;
}


.dashboard-grid{
    padding:5px !important;
}


.dashboard-card{
    min-height:190px !important;
    display:flex !important;
    flex-direction:column;
    justify-content:center;
}


.dashboard-card .icon{
    transform:scale(1.15);
}

}



/* Statistics Cards */

.stats-grid{

display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
margin:30px 0;

}


.stat-card{

background:white;
border-radius:25px;
padding:25px;
text-align:center;
box-shadow:0 10px 25px rgba(233,30,99,.12);
border:1px solid rgba(233,30,99,.08);

}


.stat-icon{

font-size:45px;
margin-bottom:10px;

}


.stat-card h2{

color:#e91e63;
font-size:32px;
margin:5px;

}


.stat-card p{

margin:0;
color:#777;
font-size:17px;

}



@media(max-width:768px){

.stats-grid{

grid-template-columns:repeat(3,1fr);
gap:10px;

}


.stat-card{

padding:15px 5px;
border-radius:18px;

}


.stat-icon{

font-size:28px;

}


.stat-card h2{

font-size:22px;

}


.stat-card p{

font-size:12px;

}

}




.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin:30px 0;
}


.stat-card{
    background:white;
    border-radius:25px;
    padding:25px;
    text-align:center;
    box-shadow:0 10px 25px rgba(233,30,99,.12);
}


.stat-icon{
    font-size:45px;
}


.stat-card h2{
    color:#e91e63;
    font-size:32px;
    margin:10px 0;
}


.stat-card p{
    color:#777;
    margin:0;
}



@media(max-width:768px){

.stats-grid{
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}


.stat-card{
    padding:15px 5px;
    border-radius:18px;
}


.stat-icon{
    font-size:28px;
}


.stat-card h2{
    font-size:22px;
}


.stat-card p{
    font-size:12px;
}

}



.dashboard-card{
    position:relative;
    overflow:hidden;
    transition:.3s ease;
}


.dashboard-card:hover{
    transform:translateY(-8px);
}


.dashboard-card .icon{
    width:80px;
    height:80px;
    margin:0 auto 15px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:linear-gradient(135deg,#ff5c8a,#ffc1d8);
    font-size:40px;
}


.dashboard-card h3{
    color:#e91e63;
}


.dashboard-card a{
    background:linear-gradient(135deg,#e91e63,#ff7aa8);
    box-shadow:0 5px 15px rgba(233,30,99,.25);
}


@media(max-width:768px){

.dashboard-card{
    border-radius:25px;
}


.dashboard-card .icon{
    width:60px;
    height:60px;
    font-size:30px;
}

}


@media(max-width:768px){

.stats-grid{
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(3, 1fr) !important;
    gap:8px !important;
    margin:20px 0 !important;
}


.stat-card{
    width:100% !important;
    padding:12px 5px !important;
    text-align:center !important;
}


.stat-icon{
    font-size:24px !important;
}


.stat-card h2{
    font-size:20px !important;
}


.stat-card p{
    font-size:11px !important;
}


}


@media(max-width:768px){

    .love-content{
        width:100% !important;
        display:block !important;
    }

    .stats-grid{
        display:flex !important;
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        width:100% !important;
        gap:8px !important;
        margin:20px 0 !important;
    }


    .stats-grid .stat-card{
        flex:1 !important;
        width:33.33% !important;
        min-width:0 !important;
        padding:10px 3px !important;
    }


    .stats-grid .stat-icon{
        font-size:22px !important;
    }


    .stats-grid h2{
        font-size:18px !important;
    }


    .stats-grid p{
        font-size:11px !important;
    }

}

