/* style.css - Global Styles for Anonymous Messenger App */

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5; /* Light gray background */
    overflow-x: hidden; /* Prevent horizontal scroll when menu is open */
}

/* Common Input/Textarea Border Styling */
/* This class will be applied to input fields and textareas */
.input-field-border,
.message-input-border {
    border: 2px solid;
    border-image: linear-gradient(to right, #4F46E5, #9333EA) 1; /* Blue to Purple gradient */
    background-color: #ffffff;
    border-radius: 1rem; /* Rounded corners for fields and textareas */
    padding: 1rem; /* Consistent padding inside fields */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

/* Specific Message/Dare Card Styling (consistent rounded borders) */
.message-card-message {
    border: 2px solid;
    border-image: linear-gradient(to right, #4F46E5, #9333EA) 1; /* Blue to Purple gradient for messages */
    background-color: #ffffff;
    border-radius: 1rem; /* Rounded corners for message cards */
    padding: 1rem; /* Consistent padding inside cards */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Subtle shadow */
}
.message-card-dare {
    border: 2px solid;
    border-image: linear-gradient(to right, #EF4444, #F97316) 1; /* Red to Orange gradient for dares */
    background-color: #ffffff;
    border-radius: 1rem; /* Rounded corners for dare cards */
    padding: 1rem; /* Consistent padding inside cards */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

/* Menu Specific Styles */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 75%; /* Adjust as needed */
    height: 100%;
    background-color: #ffffff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}
.menu-overlay.open {
    right: 0; /* Slide in */
}
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none; /* Hidden by default */
}
.backdrop.open {
    display: block; /* Show when menu is open */
}

/* Confirmation Modal Styling */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.confirm-modal.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
}
.confirm-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.confirm-modal.open .confirm-modal-content {
    transform: translateY(0);
}

/* Spacing for form fields (added to a parent div for consistent gaps) */
.form-field-spacing > div {
    margin-bottom: 1.5rem; /* Adds space below each field wrapper */
}
.form-field-spacing > div:last-child {
    margin-bottom: 0; /* No margin below the last field */
}
