/*
 * CarpeDiem Admin Panel Stylesheet
 *
 * This file contains standard CSS to ensure a consistent and professional
 * look and feel across the entire admin panel.
 */

/* --- Brand Color Variables --- */
:root {
    --brand-blue: #255A9B;
    --brand-blue-darker: #1e487a;
    --brand-focus-ring: #4f46e5; /* A nice indigo for focus rings */
}

/* --- General Form Input Styling --- */
.form-input,
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='password'],
input[type='datetime-local'],
input[type='date'],
input[type='number'],
select,
textarea {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    border-radius: 0.375rem; /* rounded-md */
    border: 1px solid #d1d5db; /* border-gray-300 */
    background-color: #ffffff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus,
input[type='text']:focus,
input[type='email']:focus,
input[type='tel']:focus,
input[type='password']:focus,
input[type='datetime-local']:focus,
input[type='date']:focus,
input[type='number']:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-focus-ring);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3); /* focus:ring-indigo-500 with opacity */
}

/* --- Radio Buttons and Checkboxes --- */
.form-radio,
.form-checkbox {
    height: 1rem;
    width: 1rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    color: var(--brand-blue);
}
.form-radio:focus,
.form-checkbox:focus {
    border-color: var(--brand-focus-ring);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-weight: 600; /* semibold */
    padding: 0.625rem 1.5rem; /* Increased padding */
    font-size: 0.875rem; /* text-sm */
    border-radius: 0.5rem; /* lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-lg */
    transition: all 0.2s ease-in-out;
    text-align: center;
    border: none;
    cursor: pointer;
    letter-spacing: 0.025em;
}
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}

.btn-primary {
    background-color: var(--brand-blue);
    color: white;
}
.btn-primary:hover {
    background-color: var(--brand-blue-darker);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
}

.btn-secondary {
    background-color: #e5e7eb; /* bg-gray-200 */
    color: #374151; /* text-gray-700 */
}
.btn-secondary:hover {
    background-color: #d1d5db; /* bg-gray-300 */
}

.btn-action {
    display: inline-block;
    background-color: #e0e7ff; /* bg-indigo-100 */
    color: #4338ca; /* text-indigo-700 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 0.5rem; /* rounded-lg */
    transition: background-color 0.3s ease;
    text-decoration: none;
    line-height: 1;
}
.btn-action:hover {
    background-color: #c7d2fe; /* bg-indigo-200 */
    color: #3730a3; /* darker indigo text */
}

/* Animation for new appointment card flash */
@keyframes flash-animation {
  0% { background-color: #ffffff; }
  25% { background-color: #eff6ff; } /* Light blue flash */
  100% { background-color: #ffffff; }
}
.flash-new {
  animation: flash-animation 1.5s ease-out;
}


/* Fix for Tom Select being invisible on initialization */
.ts-wrapper.form-input {
  visibility: visible !important;
  position: relative; /* Ensures proper positioning */
}