/* ===================================
   SP4U Custom Theme - Life Partners
   Color Palette & Animations
   =================================== */

:root {
    /* Primary Colors */
    --primary-pink: #FFE5E5;
    --primary-coral: #FF7B7B;
    --primary-red: #E62E2E;
    --dark-red: #DC143C;

    /* Text Colors */
    --text-dark: #1A1A1A;
    --text-medium: #333333;
    --text-light: #555555;

    /* Background Colors */
    --bg-light-pink: #FFF5F5;
    --bg-white: #FFFFFF;

    /* Accent Colors */
    --accent-coral-light: #FFB3B3;
    --accent-pink-light: #FFD6D6;
}

/* ===================================
   Global Styles
   =================================== */

body {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--bg-light-pink) 100%);
    color: var(--text-dark);
}

.page {
    background: var(--bg-white);
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
}

p, span, div {
    color: var(--text-medium);
}

/* ===================================
   Buttons
   =================================== */

.button,
.btn,
button,
button.button-fill,
a.button-fill,
.button-big,
.button-block {
    background: linear-gradient(135deg, #FF8A80 0%, #FF7B7B 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 16px 60px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: 0 8px 20px rgba(255, 123, 123, 0.25) !important;
    transition: all 0.3s ease !important;
    margin: 30px auto 20px !important;
    display: block !important;
    width: auto !important;
    min-width: 280px !important;
    max-width: 350px !important;
    letter-spacing: 0.3px !important;
    text-align: center !important;
    line-height: normal !important;
    vertical-align: middle !important;
}

.button:hover,
.btn:hover,
button.button-fill:hover,
a.button-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 123, 123, 0.4);
    background: linear-gradient(135deg, #FF6B6B 0%, var(--primary-coral) 100%);
}

.button:active,
.btn:active {
    transform: translateY(0px);
}

.button-outline {
    background: transparent;
    border: 2px solid var(--primary-coral);
    color: var(--primary-coral);
}

.button-outline:hover {
    background: var(--primary-coral);
    color: white;
}

/* ===================================
   Navbar
   =================================== */

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .title {
    color: var(--text-dark);
    font-weight: 600;
}

.navbar i,
.navbar .material-icons {
    color: var(--primary-coral) !important;
}

/* ===================================
   Cards & Lists
   =================================== */

.card {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
}

.list {
    background: transparent !important;
    margin: 20px 0 !important;
}

.list ul {
    background: transparent !important;
    padding: 0 20px !important;
}

.list .item-inner {
    border-color: var(--primary-pink);
}

/* ===================================
   Input Fields
   =================================== */

.list,
.item-content,
.item-inner {
    background: transparent !important;
}

.item-content {
    background: white !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    margin: 10px 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.item-input input,
.item-input textarea,
.item-input select {
    color: var(--text-dark) !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    padding: 12px 10px !important;
}

.item-input input:focus,
.item-input textarea:focus,
.item-input select:focus {
    border: none !important;
    outline: none !important;
}

.item-input input::placeholder {
    color: #666666 !important;
}

.item-label {
    color: var(--text-medium);
}

.item-inner {
    padding: 0 !important;
    border: none !important;
}

.item-media i,
.item-media .material-icons {
    color: #333333 !important;
    font-size: 24px !important;
}

/* ===================================
   Icons
   =================================== */

.material-icons {
    color: var(--primary-coral);
}

i[style*="color:#800000"],
i[style*="color: #800000"] {
    color: var(--primary-coral) !important;
}

/* ===================================
   Floating Animations
   =================================== */

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes swing {
    0% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
    100% {
        transform: rotate(-3deg);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 123, 123, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 123, 123, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 123, 123, 0);
    }
}

/* Apply Animations */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

.swing-animation {
    animation: swing 2s ease-in-out infinite;
    transform-origin: top center;
}

.heartbeat-animation {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ===================================
   Welcome/Login Screen
   =================================== */

.login-screen-content {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--bg-light-pink) 100%);
}

.page-content {
    background: transparent !important;
}

.block {
    background: transparent !important;
}

.welcome-illustration {
    text-align: center;
    padding: 40px 20px;
}

.welcome-illustration img {
    max-width: 300px;
    width: 80%;
    animation: float 3s ease-in-out infinite;
}

.welcome-title {
    font-size: 28px;
    font-weight: 600;
    color: #1A1A1A;
    text-align: center;
    margin: 20px 0 30px;
    letter-spacing: -0.5px;
}

.welcome-description {
    font-size: 16px;
    color: var(--text-medium);
    text-align: center;
    padding: 0 40px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* ===================================
   Tabs
   =================================== */

.tabbar,
.toolbar {
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.tab-link-active {
    color: var(--primary-coral) !important;
}

.tab-link {
    color: var(--text-light);
}

/* ===================================
   Messages/Chat
   =================================== */

.message-sent .message-bubble {
    background: var(--primary-coral);
    color: white;
}

.message-received .message-bubble {
    background: var(--primary-pink);
    color: var(--text-dark);
}

/* ===================================
   Profile Cards
   =================================== */

.profile-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Heart Icons
   =================================== */

.heart-icon {
    color: var(--primary-red);
    cursor: pointer;
    transition: all 0.3s ease;
}

.heart-icon:hover {
    transform: scale(1.2);
    animation: heartbeat 1s ease-in-out infinite;
}

.heart-filled {
    color: var(--primary-red);
}

.heart-outline {
    color: var(--text-light);
}

/* ===================================
   Loading & Progress
   =================================== */

.progressbar {
    background: var(--primary-pink);
}

.progressbar span {
    background: var(--primary-coral);
}

.preloader-inner {
    border-color: var(--primary-coral);
}

/* ===================================
   Badges
   =================================== */

.badge {
    background: var(--primary-coral);
    color: white;
    border-radius: 15px;
}

/* ===================================
   Chips
   =================================== */

.chip {
    background: var(--accent-pink-light);
    color: var(--text-dark);
    border-radius: 20px;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media only screen and (max-width: 600px) {
    .welcome-illustration img {
        max-width: 250px;
    }

    .welcome-title {
        font-size: 28px;
    }

    .welcome-description {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-coral {
    color: var(--primary-coral) !important;
}

.text-red {
    color: var(--primary-red) !important;
}

.bg-pink {
    background: var(--primary-pink) !important;
}

.bg-coral {
    background: var(--primary-coral) !important;
}

/* ===================================
   Override Old Maroon Colors
   =================================== */

[style*="color:#800000"],
[style*="color: #800000"],
[style*="color: rgb(128, 0, 0)"] {
    color: var(--primary-coral) !important;
}

[style*="background:#800000"],
[style*="background: #800000"],
[style*="background-color:#800000"],
[style*="background-color: #800000"] {
    background: var(--primary-coral) !important;
}

/* Theme color override */
.theme-color,
[style*="#e50b83"] {
    color: var(--primary-coral) !important;
}

[style*="background: #e50b83"],
[style*="background:#e50b83"] {
    background: var(--primary-coral) !important;
}
