/*
Theme Name: TodayCase Professional
Theme URI: https://militaryinfo.in/
Author: Military Info Foundation / TodayCase Management
Description: Professional responsive presentation theme for the TodayCase / AutoTC Court Case Information System. The application plugin retains ownership of data, navigation, forms and business logic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
License: GPL-2.0-or-later
Text Domain: todaycase
*/

:root{
 --tc-navy:#102a43;
 --tc-blue:#1769aa;
 --tc-blue-2:#0b5cab;
 --tc-sky:#eef6ff;
 --tc-gold:#c28b27;
 --tc-green:#18864b;
 --tc-red:#b42318;
 --tc-purple:#6941c6;
 --tc-ink:#172033;
 --tc-muted:#667085;
 --tc-line:#d9e2ec;
 --tc-bg:#f4f7fb;
 --tc-white:#fff;
 --tc-radius:14px;
 --tc-shadow:0 8px 28px rgba(16,42,67,.08);
 --tc-shadow-soft:0 2px 10px rgba(16,42,67,.06);
}

html{margin:0!important;padding:0!important;background:var(--tc-bg);scroll-behavior:smooth}
body{
 margin:0!important;padding:0!important;
 background:var(--tc-bg);
 color:var(--tc-ink);
 font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
 font-size:14px;line-height:1.5;
 -webkit-font-smoothing:antialiased;
 text-rendering:optimizeLegibility;
}
*,*:before,*:after{box-sizing:border-box}
img,svg,video{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
a{color:var(--tc-blue);text-decoration:none}
a:hover{text-decoration:underline}

/* WordPress shell is intentionally neutral: the TodayCase plugin owns the application UI. */
#wpadminbar{z-index:999999}
.site-header,.site-footer,.site-navigation,.main-navigation,
.entry-header,.page-header,.site-title,.entry-title,
.wp-block-post-title{margin:0}
.site-content,.content-area,.site-main,
.entry-content{width:100%;max-width:none;margin:0;padding:0}
.entry-content>*:first-child{margin-top:0}
.entry-content>*:last-child{margin-bottom:0}

.tc-theme-shell{min-height:100vh;display:flex;flex-direction:column}
.tc-theme-shell > *{min-width:0}

/* Safe, restrained defaults for plugin/application containers. */
.tc-theme-shell .tcm-page,
.tc-theme-shell .tcm-shell,
.tc-theme-shell .tcm-wrap,
.tc-theme-shell .tcm-app,
.tc-theme-shell .todaycase-app,
.tc-theme-shell .autotc-app{
 width:100%;max-width:none;
}
.tc-theme-shell .tcm-card,
.tc-theme-shell .tcm-panel,
.tc-theme-shell .tcm-standard-card{
 border-radius:var(--tc-radius);
 box-shadow:var(--tc-shadow-soft);
}
.tc-theme-shell input:not([type="checkbox"]):not([type="radio"]),
.tc-theme-shell select,
.tc-theme-shell textarea{
 border-color:var(--tc-line);
 border-radius:9px;
 min-height:38px;
}
.tc-theme-shell textarea{min-height:92px}
.tc-theme-shell input:focus,
.tc-theme-shell select:focus,
.tc-theme-shell textarea:focus{
 outline:3px solid rgba(23,105,170,.13);
 outline-offset:1px;
 border-color:var(--tc-blue);
}
.tc-theme-shell button,
.tc-theme-shell input[type="submit"],
.tc-theme-shell input[type="button"]{
 border-radius:9px;
}

/* Common compact table treatment. Does not alter plugin data or markup. */
.tc-theme-shell table{
 border-collapse:separate;border-spacing:0;width:100%;
}
.tc-theme-shell th{
 background:#f5f8fc;color:#344054;font-weight:800;
}
.tc-theme-shell th,.tc-theme-shell td{
 border-bottom:1px solid var(--tc-line);
 padding:9px 10px;
 vertical-align:middle;
}
.tc-theme-shell tr:last-child td{border-bottom:0}

/* Useful visual hierarchy for generic WordPress notices. */
.tc-theme-shell .notice,
.tc-theme-shell .updated,
.tc-theme-shell .error{
 border-radius:10px;border-left-width:4px;
 box-shadow:var(--tc-shadow-soft);
}

/* Mobile: do not force desktop-width application panels. */
@media (max-width: 900px){
 body{font-size:13px}
 .tc-theme-shell .tcm-grid,
 .tc-theme-shell .tcm-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tc-theme-shell table{display:block;overflow-x:auto;white-space:nowrap}
}
@media (max-width: 620px){
 .tc-theme-shell .tcm-grid,
 .tc-theme-shell .tcm-form-grid{grid-template-columns:1fr}
 .tc-theme-shell th,.tc-theme-shell td{padding:8px}
 .tc-theme-shell input:not([type="checkbox"]):not([type="radio"]),
 .tc-theme-shell select{min-height:40px}
}

/* Accessibility */
:focus-visible{outline:3px solid rgba(23,105,170,.35);outline-offset:2px}
@media (prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*:before,*:after{transition:none!important;animation:none!important}
}
