/* Personal Notes App - Blue Pastel Gradient Theme */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Soft Blue Gradient Background */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 25%, #90caf9 50%, #64b5f6 75%, #42a5f5 100%);
    background-size: 400% 400%;
    animation: gentleGradientShift 20s ease infinite;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
    overflow-x: hidden;
}

/* Soft Floating Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.2) 1.5px, transparent 1.5px);
    background-size: 150px 150px, 100px 100px, 200px 200px;
    animation: softFloatingParticles 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

/* Gentle Animations */
@keyframes gentleGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes softFloatingParticles {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(180deg); }
}

/* Glassmorphism Cards */
.card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(66, 165, 245, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(66, 165, 245, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Soft Blue Card Headers */
.card-header {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    background-size: 200% 200%;
    animation: softHeaderMove 8s ease infinite;
    color: white;
    border-radius: 20px 20px 0 0 !important;
    border: none;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
}

/* Gentle Wave Animation */
.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23ffffff' fill-opacity='0.1'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 120px;
    animation: gentleWaveMove 6s ease-in-out infinite;
}

@keyframes gentleWaveMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-30px); }
}

@keyframes softHeaderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Soft Blue Button Styles */
.btn {
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 30px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 50%, #2196f3 100%);
    background-size: 200% 200%;
    animation: btnGentleShift 6s ease infinite;
    color: white;
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.4);
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 15px 35px rgba(66, 165, 245, 0.6);
}

@keyframes btnGentleShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Outline Button */
.btn-outline-primary {
    border: 2px solid #64b5f6;
    color: #2196f3;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 165, 245, 0.3);
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

/* Soft Form Styles */
.form-control {
    border-radius: 15px;
    border: 2px solid rgba(100, 181, 246, 0.3);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 12px 18px;
    color: #333;
}

.form-control::placeholder {
    color: rgba(25, 118, 210, 0.6);
}

.form-control:focus {
    border-color: #42a5f5;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.15);
    transform: translateY(-1px);
}

/* Soft Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(66, 165, 245, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 50%, #1976d2 100%);
    background-size: 200% 200%;
    animation: softTextMove 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes softTextMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Note Cards */
.card-body .card {
    background: rgba(255, 255, 255, 0.3);
    border-left: 4px solid #64b5f6;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    animation: softPulse 4s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(100, 181, 246, 0.2); }
    50% { box-shadow: 0 0 25px rgba(100, 181, 246, 0.4); }
}

.card-body .card:hover {
    border-left-color: #42a5f5;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.01);
}

/* Soft Alert Styles */
.alert {
    border-radius: 15px;
    border: none;
    font-weight: 500;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: softShimmer 3s infinite;
}

@keyframes softShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.alert-success {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(129, 199, 132, 0.3);
}

.alert-danger {
    background: linear-gradient(135deg, #ef5350 0%, #f44336 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 83, 80, 0.3);
}

/* Search Form */
.form-control-sm {
    border-radius: 20px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(100, 181, 246, 0.3);
    color: #1976d2;
}

.form-control-sm::placeholder {
    color: rgba(25, 118, 210, 0.7);
}

.form-control-sm:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.1);
}

.breadcrumb-item a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #42a5f5;
    text-shadow: 0 0 8px rgba(66, 165, 245, 0.6);
}

.breadcrumb-item.active {
    color: #64b5f6;
    font-weight: 600;
}

/* Gentle Icon Animation */
.fas {
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(66, 165, 245, 0.3));
    animation: gentleIconFloat 4s ease-in-out infinite;
}

@keyframes gentleIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Welcome Text */
.navbar-text {
    font-weight: 600;
    color: #1976d2;
    text-shadow: 0 0 10px rgba(25, 118, 210, 0.3);
    animation: softTextGlow 3s ease-in-out infinite alternate;
}

@keyframes softTextGlow {
    from { text-shadow: 0 0 10px rgba(25, 118, 210, 0.3); }
    to { text-shadow: 0 0 15px rgba(66, 165, 245, 0.6); }
}

/* Blue Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
}

/* Typography */
.card-title {
    color: #1976d2;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(25, 118, 210, 0.2);
    letter-spacing: -0.02em;
}

.text-muted {
    color: rgba(25, 118, 210, 0.7) !important;
    font-weight: 400;
}

/* Footer */
.card-footer {
    background: rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(10px);
}

/* Gentle Floating Animation */
@keyframes gentleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(0.5deg); 
    }
}

.card-header {
    animation: gentleFloat 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
}