/* Modern Mobile App CSS - RRF Digital Passbook */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    min-height: 100vh;
    position: relative;
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, #0d5ee1 0%, #fc6868 50%, #08bae2 100%);
    padding: 10px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: white;
    padding: 6px;
}

.logo-text h1 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-text p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
    font-weight: 300;
}

/* Floating Circles Animation */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 60px;
    height: 60px;
    top: 15px;
    right: 40px;
    animation-delay: 0s;
}

.circle-2 {
    width: 90px;
    height: 90px;
    top: 45px;
    right: 120px;
    animation-delay: 2s;
}

.circle-3 {
    width: 45px;
    height: 45px;
    top: 30px;
    right: 200px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Removed rainbow animations to restore original header */

/* Main Content */
.app-main {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-card {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.welcome-icon {
    font-size: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.welcome-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.welcome-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 300;
}

/* Form Section */
.form-section {
    margin-bottom: 40px;
}

.form-container {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.input-label label {
    color: #2d3436;
    font-weight: 500;
    font-size: 16px;
}

.modern-input {
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-input:focus {
    outline: none;
    border-color: #74b9ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1);
    transform: translateY(-2px);
}

.modern-input::placeholder {
    color: #b2bec3;
}

/* Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 15px;
    border: none;
    border-radius: 18px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: none;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    opacity: 1;
    transform: none;
}

/* Button Entrance Animation */
@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Button animations removed */

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn:hover::before {
    left: 100%;
}

/* Enhanced Button Hover Effects */
.action-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.action-btn:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

/* Button Icon Styles */
.btn-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: none;
}

/* PNG icons from /images */
.btn-icon.icon-user { background-image: url('images/home.png'); }
.btn-icon.icon-money { background-image: url('images/add.png'); }
.btn-icon.icon-bank { background-image: url('images/navigation.png'); }
.btn-icon.icon-list { background-image: url('images/info.png'); }
.btn-icon.icon-chart { background-image: url('images/quotes.png'); }

/* Loading icon replacement for emoji hourglass in JS template */
.action-btn.loading .btn-icon { background-image: url('images/gear.png'); }

/* removed custom money-icon; using default emoji */

/* Color only the specific user icon (👤) */
/* removed specific user-icon color to revert to default emoji */

.action-btn:hover .btn-icon {
    transform: translateY(-5px) scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.btn-text {
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-subtitle {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 300;
    transition: all 0.3s ease;
}

.action-btn:hover .btn-text {
    transform: scale(1.05);
}

.action-btn:hover .btn-subtitle {
    opacity: 1;
    transform: scale(1.1);
}

/* Button Color Variants */
.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.success-btn {
    background: linear-gradient(135deg, hsl(210, 92%, 46%) 0%, #eba926 100%);
    color: white;
}

.info-btn {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    animation: infoRotate 5s linear infinite;
}

@keyframes infoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-btn:hover {
    background: linear-gradient(135deg, #6aa8e6 0%, #0873cc 100%);
    animation: infoPulse 0.6s ease-in-out;
}

@keyframes infoPulse {
    0%, 100% { transform: translateY(-8px) scale(1.05); }
    50% { transform: translateY(-12px) scale(1.08); }
}

.warning-btn {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    animation: warningShake 3s ease-in-out infinite;
}

@keyframes warningShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.warning-btn:hover {
    background: linear-gradient(135deg, #f4c25d 0%, #d65f44 100%);
    animation: warningPulse 0.6s ease-in-out;
}

@keyframes warningPulse {
    0%, 100% { transform: translateY(-8px) scale(1.05); }
    50% { transform: translateY(-12px) scale(1.08); }
}

.danger-btn {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
    color: white;
    animation: dangerPulse 2s ease-in-out infinite;
}

@keyframes dangerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.danger-btn:hover {
    background: linear-gradient(135deg, #d65f44 0%, #c42526 100%);
    animation: dangerPulseHover 0.6s ease-in-out;
}

@keyframes dangerPulseHover {
    0%, 100% { transform: translateY(-8px) scale(1.05); }
    50% { transform: translateY(-12px) scale(1.08); }
}

/* Button Loading State */
.action-btn.loading {
    pointer-events: none;
    animation: buttonLoading 1.5s ease-in-out infinite;
}

@keyframes buttonLoading {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Button Success State */
.action-btn.success {
    animation: buttonSuccess 0.6s ease-in-out;
}

@keyframes buttonSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Footer Decoration */
.footer-decoration {
    position: relative;
    margin-top: 40px;
}

.wave-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.wave-container svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape-fill {
    fill: rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (min-width: 768px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .app-main {
        padding: 40px;
    }
}

@media (min-width: 1024px) {
    .button-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .welcome-card {
        padding: 40px;
    }
    
    .form-container {
        padding: 40px;
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .app-header {
        padding: 8px 0;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text p {
        font-size: 12px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        padding: 5px;
    }
    
    .logo-container {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .welcome-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .form-container {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .action-btn {
        padding: 12px 12px;
        min-height: 70px;
        gap: 4px;
    }
    
    .btn-icon {
        width: 24px;
        height: 24px;
    }
    
    .btn-text {
        font-size: 16px;
    }
    
    .btn-subtitle {
        font-size: 12px;
    }
    
    .button-grid {
        gap: 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.action-btn:focus {
    outline: 3px solid rgba(116, 185, 255, 0.5);
    outline-offset: 2px;
}

.modern-input:focus {
    outline: 3px solid rgba(116, 185, 255, 0.5);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Ripple Effect */
.action-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Button States */
.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.action-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Button Focus Ring */
.action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.5), 0 0 0 6px rgba(116, 185, 255, 0.2);
}

/* Button Press Effect */
.action-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

/* Button Hover Glow */
.action-btn:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: buttonGlow 0.6s ease-out forwards;
}

@keyframes buttonGlow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Button Text Animation */
.action-btn:hover .btn-text {
    animation: textBounce 0.6s ease-in-out;
}

@keyframes textBounce {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
}

/* Button Icon Rotation on Hover */
.action-btn:hover .btn-icon {
    animation: iconSpin 0.6s ease-in-out;
}

@keyframes iconSpin {
    0% { transform: translateY(-5px) scale(1.2) rotate(0deg); }
    100% { transform: translateY(-5px) scale(1.2) rotate(360deg); }
}

/* Button Border Animation */
.action-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover::after {
    opacity: 1;
    animation: borderGradient 3s ease infinite;
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Button Scale Animation on Load */
.action-btn {
    animation: buttonEntrance 0.8s ease-out forwards, buttonScale 2s ease-in-out infinite alternate;
}

@keyframes buttonScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

/* Button Hover Scale */
.action-btn:hover {
    animation: buttonHoverScale 0.3s ease-out forwards;
}

@keyframes buttonHoverScale {
    0% { transform: translateY(-8px) scale(1.05); }
    100% { transform: translateY(-12px) scale(1.08); }
}

/* Button Click Wave Effect */
.action-btn:active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    animation: clickWave 0.6s ease-out;
}

@keyframes clickWave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Button Magnetic Effect */
.action-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-btn:hover {
    transform: translateY(-8px) scale(1.05) rotate(1deg);
}

/* Button Shadow Animation */
.action-btn {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-btn:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.1);
}

/* Button Text Shadow on Hover */
.action-btn:hover .btn-text {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Button Icon Glow on Hover */
.action-btn:hover .btn-icon {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)) brightness(1.2);
}

/* Button Subtitle Fade In */
.action-btn .btn-subtitle {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.action-btn:hover .btn-subtitle {
    opacity: 1;
    transform: translateY(-2px);
}

/* Button Loading Spinner */
.action-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Success Checkmark */
.action-btn.success .btn-icon {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(-45deg); }
    50% { transform: scale(1.2) rotate(-45deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Footer Styles */
.app-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.footer-description p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin: 5px 0;
    line-height: 1.4;
}

/* Footer Counters */
.footer-counters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.counter-item {
  /*  display: flex; */
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.counter-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.counter-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    color: white;
}

.counter-content {
    text-align: center;
}

.counter-value {
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.counter-label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}

.counter-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(-5px);
}

.contact-icon {
    font-size: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    color: white;
}

.contact-text {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.footer-developer {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .counter-item {
        padding: 12px 16px;
    }
    
    .counter-value {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .app-footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .counter-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .counter-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .counter-value {
        font-size: 22px;
    }
}

