/* jpConnect - Orkut Web 2.0 Theme */

:root {
    --primary-color: #5d87cd;     /* Orkut primary blue */
    --secondary-color: #8fafe4;   /* Orkut light blue */
    --success-color: #4caf50;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #bfd6fc;
    --light-color: #eef4fc;       
    --dark-color: #1a2f52;        /* Darker, richer text */
    --accent-color: #e5007d;      /* Orkut brand pink */
    --body-bg: #e6f0fa;           /* Softer, cleaner modern background */
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, #ffffff 0%, var(--body-bg) 100%) no-repeat fixed;
    color: #333333;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Header/Navbar Override */
.bg-primary {
    background-color: var(--primary-color) !important;
    background-image: linear-gradient(135deg, #78a2e6 0%, #5d87cd 100%) !important;
}

.navbar.bg-primary {
    background-color: rgba(93, 135, 205, 0.85) !important;
    background-image: none !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 0 4px 20px rgba(93, 135, 205, 0.1);
}

/* Reduce navbar height */
.navbar {
    min-height: 32px !important;
}

.navbar-brand {
    padding-top: 0.125rem !important;
    padding-bottom: 0.125rem !important;
    font-size: 1rem !important;
}

.navbar-nav .nav-link {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    font-size: 1.05rem !important;
    display: flex;
    align-items: center;
}

.btn-light.text-primary {
    padding: 0.4rem 1.25rem !important;
    font-size: 1.05rem !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.navbar-toggler {
    padding: 0.125rem 0.25rem !important;
    font-size: 0.75rem !important;
}

.navbar-brand {
    font-size: 1.3rem;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Orkut logo style branding: jpConnect pink highlight */
.navbar-brand i {
    color: var(--accent-color) !important;
    text-shadow: none;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 16px !important;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Main Content Container wrapper spacing */
main {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #78a2e6 0%, #5d87cd 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(93, 135, 205, 0.15);
}

.hero-section h1, .hero-section p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Web 3.0 Glass/Soft Cards */
.card {
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(93, 135, 205, 0.08) !important;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(93, 135, 205, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

/* Spacing and border rounding */
.card-body {
    padding: 1.25rem;
}

/* Cap massive paddings on form screens to look compact and premium */
.card-body.p-5 {
    padding: 1.75rem !important;
}

/* Typography Scaling & Heading Styles */
h1, .h1 { font-size: 1.50rem !important; }
h2, .h2 { font-size: 1.30rem !important; }
h3, .h3 { font-size: 1.12rem !important; }
h4, .h4 { font-size: 1.00rem !important; }
h5, .h5 { font-size: 0.90rem !important; }
h6, .h6 { font-size: 0.80rem !important; }

.display-4 { font-size: 2.2rem !important; }
.lead { font-size: 1.0rem !important; }

/* Card Titles and General Headings */
.card-title, h4.fw-bold, h5.fw-bold, h3.fw-bold, h2.fw-bold, h1.fw-bold {
    color: var(--dark-color) !important;
    font-weight: 700 !important;
}

/* Text overrides for dark background sections (Carousel, CTA, and primary sections) */
.carousel-item h1, 
.carousel-item h2, 
.carousel-item h3, 
.carousel-item h4, 
.carousel-item h5, 
.carousel-item p,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary p,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white p {
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6) !important;
}

/* Subtitles/Accents */
.text-primary {
    color: var(--dark-color) !important;
}

/* Modern Soft Buttons */
/* Global Button Scaling Override */
.btn {
    font-size: 0.85rem !important;
    padding: 0.45rem 1.2rem !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    letter-spacing: 0.3px;
}
.btn-lg {
    font-size: 0.95rem !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 12px !important;
}
.btn-sm {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.6rem !important;
    border-radius: 8px !important;
}

.btn-primary {
    background-color: #5d87cd !important;
    background-image: linear-gradient(135deg, #78a2e6 0%, #5d87cd 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(93, 135, 205, 0.3) !important;
}

.btn-primary:hover {
    background-image: linear-gradient(135deg, #8fafe4 0%, #4a74b3 100%) !important;
    box-shadow: 0 6px 16px rgba(93, 135, 205, 0.45) !important;
    transform: translateY(-2px) !important;
}

.btn-outline-primary {
    border: 1px solid #5d87cd !important;
    color: #5d87cd !important;
    background-color: transparent !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: rgba(93, 135, 205, 0.08) !important;
    color: #4a74b3 !important;
    border-color: #4a74b3 !important;
    transform: translateY(-2px) !important;
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(174, 200, 244, 0.4) !important;
    color: var(--dark-color) !important;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
}

.btn-light:hover {
    background-color: #ffffff !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05) !important;
    transform: translateY(-2px) !important;
}

.btn-light.text-primary {
    color: var(--dark-color) !important;
}

.btn-outline-light {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    background-color: transparent !important;
    font-weight: 600;
}

.btn-outline-light:hover {
    background-color: #ffffff !important;
    color: var(--dark-color) !important;
}

/* Orkut pink accents on action badges or important buttons */
.btn-accent, .btn-danger {
    background-color: var(--accent-color) !important;
    border-color: #c2006a !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background-color: #c2006a !important;
}

/* Forms and Inputs */
.form-control, .form-select {
    border: 1px solid rgba(174, 200, 244, 0.5) !important;
    border-radius: 10px !important;
    background-color: #fdfdff;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.8rem !important;
    color: #333333 !important;
    transition: all 0.25s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: #5d87cd !important;
    box-shadow: 0 0 0 4px rgba(93, 135, 205, 0.15) !important;
    background-color: #ffffff !important;
}

.form-label {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--dark-color) !important;
    margin-bottom: 6px !important;
}

.form-control::placeholder {
    font-size: 0.76rem !important;
    color: #8c9bb0 !important;
    opacity: 0.80;
}

/* Tables styling with cleaner web 3.0 borders */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table thead, .table thead tr, .table thead th {
    background-color: rgba(93, 135, 205, 0.08) !important;
    color: var(--dark-color) !important;
    font-weight: 600;
    border: none !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(174, 200, 244, 0.2) !important;
}

.table tbody tr:hover {
    background-color: rgba(93, 135, 205, 0.03) !important;
}

.table tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

.table tbody tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

.table td {
    border-bottom: 1px solid rgba(174, 200, 244, 0.2) !important;
    border-top: none !important;
    color: #444;
    padding: 12px 10px;
}

/* Alerts */
.alert {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.alert-success {
    background-color: #e2f0d9 !important;
    border: 1px solid #a9d18e !important;
    color: #385723 !important;
}

.alert-danger {
    background-color: #fce4d6 !important;
    border: 1px solid #f4b084 !important;
    color: #c65911 !important;
}

.alert-info {
    background-color: #eef4fc !important;
    border: 1px solid #aec8f4 !important;
    color: var(--dark-color) !important;
}

.alert-warning {
    background-color: #fff2cc !important;
    border: 1px solid #ffd966 !important;
    color: #7f6000 !important;
}

/* Badges - using Orkut pink for branding tag accents */
.badge {
    border-radius: 3px !important;
    font-weight: 500;
}

.badge.bg-primary {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
}

.badge.bg-success {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.badge.bg-light {
    background-color: #eef4fc !important;
    border: 1px solid #aec8f4 !important;
    color: var(--dark-color) !important;
}

/* Progress bar completion */
.progress-bar.bg-primary {
    background-color: var(--accent-color) !important;
}

/* Sidebar lists styling like Orkut's sidebar links */
.list-unstyled a {
    color: #5d87cd;
    font-weight: 500;
}

.list-unstyled a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer Style (Orkut footer look) */
footer.bg-dark {
    background-color: #eef4fc !important;
    color: var(--dark-color) !important;
    border-top: 1px solid #aec8f4;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

footer.bg-dark a {
    color: #5d87cd !important;
    font-weight: 500;
}

footer.bg-dark a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

footer.bg-dark p.text-muted, footer.bg-dark .text-muted {
    color: var(--dark-color) !important;
    opacity: 0.85;
}

footer.bg-dark hr.border-secondary {
    border-color: #aec8f4 !important;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #eef4fc;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a74b3;
}

/* Dashboard Specifics */
.dashboard-card {
    border-left: 4px solid var(--accent-color) !important;
}

.stat-card {
    background: linear-gradient(135deg, #78a2e6 0%, #5d87cd 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(93, 135, 205, 0.15) !important;
    border-radius: 16px;
}

.stat-card h3 {
    color: #ffffff !important;
}

.profile-header {
    background: linear-gradient(135deg, #78a2e6 0%, #5d87cd 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.profile-picture {
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 50% !important;
}

/* Animations and Premium Finishes */
.hover-shadow {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(93, 135, 205, 0.25), 0 10px 10px rgba(93, 135, 205, 0.22) !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Enhanced shadow effects */
.shadow-xl {
    box-shadow: 0 20px 40px rgba(93, 135, 205, 0.15), 0 10px 20px rgba(93, 135, 205, 0.1);
}

/* Better hover effects */
.hover-shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(93, 135, 205, 0.25), 0 15px 30px rgba(93, 135, 205, 0.2);
}

/* Premium Navigation Highlights */
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Custom Tooltip Styling */
.tooltip-custom {
    position: relative;
    display: inline-block;
}

.tooltip-custom .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-custom:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


/* Admin Sidebar overrides to match Orkut theme */
.sidebar {
    background-color: var(--light-color) !important;
    border-right: 1px solid #aec8f4;
    min-height: 100vh;
}

.sidebar .p-4 {
    background-color: var(--primary-color) !important;
    background-image: linear-gradient(to bottom, #8fafe4 0%, #5d87cd 100%) !important;
    border-bottom: 1px solid #4a74b3;
    padding: 1.5rem !important;
}

.sidebar .p-4 h4 {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-bottom: 0;
}

.sidebar .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    border-bottom: 1px solid rgba(174, 200, 244, 0.5);
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #d8e5f8 !important;
}

.sidebar .nav-link.active {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.sidebar hr {
    border-color: #aec8f4 !important;
    margin: 1rem 0;
    opacity: 0.5;
}
