/* Catlendar Custom Styles */

/* Main content spacing */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card styling with cat theme */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
    border-color: #5A8AD5;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: rgba(90, 138, 213, 0.2);
}

/* Event styling with paw print indicators */
.list-group-item {
    border-left: 4px solid #F7C66A;
    transition: background-color 0.2s;
    position: relative;
}

.list-group-item:hover {
    background-color: rgba(247, 198, 106, 0.1);
}

.list-group-item::before {
    content: "🐾";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    opacity: 0.7;
}

.time-label {
    font-size: 0.9rem;
    color: #FF9494;
    font-weight: 500;
}

/* Textarea with auto-grow */
.form-floating textarea.form-control {
    resize: none;
}

/* Page header */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar {
    border-bottom: 3px solid #5A8AD5;
}

/* Custom logo animation */
.logo-container img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.logo-container:hover img {
    transform: rotate(3deg) scale(1.02);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

/* Animation for loading */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#loadingCard .spinner-border {
    animation: pulse 1.5s infinite ease-in-out, spinner-border 0.75s linear infinite;
}

/* Toast styling */
.toast {
    background-color: var(--bs-dark);
    color: var(--bs-light);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
}

.toast-header {
    background-color: var(--bs-dark);
    color: var(--bs-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cat-themed Button styles */
.btn {
    transition: all 0.2s;
    border-radius: 0.5rem;
}

.btn-primary {
    background-color: #5A8AD5;
    border-color: #4A6FA5;
}

.btn-success {
    background-color: #68C184;
    border-color: #4DA166;
}

.btn-info {
    background-color: #5EBAD9;
    border-color: #4A9CB9;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Paw print loading animation */
.paw-loading {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
}

.paw-loading::before, 
.paw-loading::after {
    content: "🐾";
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: pawAnimation 3s infinite;
}

.paw-loading::after {
    animation-delay: 1.5s;
}

@keyframes pawAnimation {
    0% {
        left: -20px;
        top: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 40px;
        top: 0;
        opacity: 0;
    }
}

/* Voice interaction styles */
.voice-button {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.voice-button:hover {
    transform: scale(1.05);
}

.recording-indicator {
    position: absolute;
    top: 60px;
    right: 15px;
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: none;
    animation: pulse 1.5s infinite;
}

.voice-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(33, 37, 41, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 100;
}

/* Purring animation when app is speaking */
@keyframes purr {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    2% { transform: translate(1px, 1px) rotate(0.5deg); }
    4% { transform: translate(0px, 1px) rotate(0deg); }
    6% { transform: translate(1px, 0px) rotate(-0.5deg); }
    8% { transform: translate(0px, 0px) rotate(0deg); }
    10% { transform: translate(1px, 1px) rotate(0.5deg); }
    12% { transform: translate(0px, 1px) rotate(0deg); }
    14% { transform: translate(1px, 0px) rotate(-0.5deg); }
    16% { transform: translate(0px, 0px) rotate(0deg); }
    18% { transform: translate(1px, 1px) rotate(0.5deg); }
    20% { transform: translate(0px, 0px) rotate(0deg); }
}

.purring {
    animation: purr 2s ease-in-out infinite;
}
