/* 
 * Roshan Group - Light Theme CSS
 * White and Blue Color Scheme
 * Apply this to all pages for consistent styling
 */

/* Base Colors */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --blue-primary: #2563eb;
    --blue-secondary: #3b82f6;
    --blue-light: #dbeafe;
    --blue-dark: #1e40af;
    
    --green-primary: #10b981;
    --green-light: #d1fae5;
    
    --red-primary: #ef4444;
    --red-light: #fee2e2;
    
    --orange-primary: #f59e0b;
    --orange-light: #fed7aa;
    
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Body Base */
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #ffffff 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Media defaults */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Page Content Wrapper */
.page-content {
    flex: 1;
    padding: 24px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Cards */
.card, .panel, .section, .form-wrap, .profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

/* Headings */
h1 {
    color: var(--blue-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

h2 {
    color: var(--blue-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

h3 {
    color: var(--blue-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Text */
p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Links */
a {
    color: var(--blue-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

/* Buttons */
.btn, button[type="submit"], input[type="submit"] {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    min-height: 44px; /* touch target */
}

.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--green-primary), #14b8a6);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, var(--green-primary));
}

.btn-danger {
    background: linear-gradient(135deg, var(--red-primary), #dc2626);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px var(--blue-light);
}

label {
    display: block;
    color: var(--blue-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

th {
    background: var(--blue-primary);
    color: #ffffff;
    font-weight: 600;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

tr:hover {
    background: var(--bg-secondary);
}

/* Status Badges */
.status-badge, .admin-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.approved, .admin-badge {
    background: var(--green-light);
    color: var(--green-primary);
    border: 1px solid var(--green-primary);
}

.status-badge.pending {
    background: var(--blue-light);
    color: var(--blue-primary);
    border: 1px solid var(--blue-primary);
}

.status-badge.declined {
    background: var(--orange-light);
    color: var(--orange-primary);
    border: 1px solid var(--orange-primary);
}

.status-badge.blocked {
    background: var(--red-light);
    color: var(--red-primary);
    border: 1px solid var(--red-primary);
}

/* Messages */
.message, .msg, .error, .success {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.message.success, .msg {
    background: var(--green-light);
    border-color: var(--green-primary);
    color: #065f46;
}

.message.error, .error {
    background: var(--red-light);
    border-color: var(--red-primary);
    color: #991b1b;
}

.message.info {
    background: var(--blue-light);
    border-color: var(--blue-primary);
    color: #1e40af;
}

.message.warning {
    background: var(--orange-light);
    border-color: var(--orange-primary);
    color: #92400e;
}

/* Header (if you have one) */
header {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
    color: #ffffff;
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
    color: #ffffff;
    padding: 20px 24px;
    text-align: center;
    margin-top: auto;
}

/* Feature Cards */
.feature-card, .login-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.feature-card:hover, .login-card:hover {
    border-color: var(--blue-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.info-value.highlight {
    color: var(--blue-primary);
    font-weight: 600;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }

/* Visibility utilities */
.hide-on-mobile { display: initial; }
.show-on-mobile { display: none; }

/* Flex utilities */
.stack-on-mobile { display: flex; gap: 12px; }
.stack-on-mobile > * { flex: 1 1 0%; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .page-content { padding: 16px; }
    .card, .panel, .section, .form-wrap, .profile-section { padding: 16px; border-radius: 10px; }
    /* Make tables scrollable horizontally on small screens */
    table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    thead, tbody, th, td, tr { white-space: nowrap; }
    /* Stack flex rows vertically when marked */
    .stack-on-mobile { flex-direction: column; }
    .hide-on-mobile { display: none !important; }
    .show-on-mobile { display: initial !important; }
    /* Inputs slightly larger for touch */
    input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="tel"], select, textarea { font-size: 1rem; padding: 12px 14px; }
}
