/* Custom Variables - Enhanced with prescription pad colors */
:root {
    --primary-color: #e63c8e; /* Pink from the prescription pad */
    --secondary-color: #6c757d;
    --success-color: #00d97e;
    --info-color: #39afd1;
    --warning-color: #f6c343;
    --danger-color: #e63757;
    --light-purple: #f0e6f5; /* Light purple background from prescription */
    --dark-purple: #9c27b0;  /* Darker purple from prescription header */
    --border-radius: 0.5rem;
}

/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* Card Styles - for prescription-like appearance */
.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Form Elements - Medical Styling */
.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 60, 142, 0.25);
}

.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Creating the prescription pad look */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-purple)) !important;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

/* Custom Badge for Medicine Schedule */
.badge {
    padding: 0.4em 0.65em;
    font-weight: 500;
    border-radius: 50rem;
}

/* Tables for Prescription Data */
.table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #d62677;
    border-color: #d62677;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Special Medical Icons */
.fas {
    margin-right: 0.25rem;
}

/* Footer */
.card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

/* Print Styles for Prescription */
@media print {
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn, .navbar, .no-print {
        display: none !important;
    }
}

/* Doctor section styling */
.doctor-info {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}