/**
 * AtoZ Result - Cyber Cafe & Applicant Online Tools Stylesheet
 * Brand Color: #721220 | Font: Roboto, sans-serif
 */

/* ==========================================================================
   1. Tools Common Layout & Hero Header
   ========================================================================== */
.atoz-tools-page {
    padding: 15px;
    background-color: #f8fafc;
    min-height: 80vh;
}

.atoz-tool-hero {
    background: linear-gradient(135deg, #721220 0%, #4a0b14 100%);
    color: #ffffff;
    padding: 24px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(114, 18, 32, 0.15);
    text-align: center;
}

/* Homepage Quick Tools Bar */
.atoz-quick-tools-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #721220;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.atoz-tools-bar-title {
    font-size: 13px;
    font-weight: 700;
    color: #721220;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.atoz-tools-bar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-grow: 1;
}

.atoz-tool-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.atoz-tool-pill i {
    color: #721220;
}

.atoz-tool-pill:hover {
    background: #fdf2f2;
    border-color: #721220;
    color: #721220 !important;
}

.atoz-tool-pill-all {
    background: #721220;
    color: #ffffff !important;
    border-color: #721220;
}

.atoz-tool-pill-all i {
    color: #ffffff;
}

.atoz-tool-pill-all:hover {
    background: #540c16;
    color: #ffffff !important;
}

.atoz-tool-hero h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.3;
}

.atoz-tool-hero p {
    font-size: 14px;
    margin: 0 0 14px 0;
    color: #f1d3d7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.atoz-tool-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.atoz-tool-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.atoz-tool-breadcrumbs {
    font-size: 13px;
    margin-bottom: 12px;
    color: #666;
}

.atoz-tool-breadcrumbs a {
    color: #721220;
    text-decoration: none;
    font-weight: 500;
}

.atoz-tool-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   2. Hub Index Cards (/tools/)
   ========================================================================== */
.atoz-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.atoz-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.atoz-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(114, 18, 32, 0.12);
    border-color: #721220;
}

.atoz-tool-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #fdf2f2;
    color: #721220;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
}

.atoz-tool-card h2 {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.atoz-tool-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.atoz-tool-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.atoz-tool-card-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.atoz-tool-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #721220;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.2s;
}

.atoz-tool-card-btn:hover {
    background: #540c16;
}

/* ==========================================================================
   3. Interactive Workspace (Two Columns)
   ========================================================================== */
.atoz-tool-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .atoz-tool-workspace {
        grid-template-columns: 1fr;
    }
}

.atoz-tool-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.atoz-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #721220;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Upload Dropzone */
.atoz-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 28px 16px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 18px;
    position: relative;
}

.atoz-dropzone:hover, .atoz-dropzone.dragover {
    border-color: #721220;
    background: #fdf2f2;
}

.atoz-dropzone i {
    font-size: 38px;
    color: #721220;
    margin-bottom: 10px;
}

.atoz-dropzone p {
    margin: 0;
    font-size: 14px;
    color: #475569;
}

.atoz-dropzone small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.atoz-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Form Groups & Controls */
.atoz-form-group {
    margin-bottom: 16px;
}

.atoz-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.atoz-form-group .form-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
    display: block;
}

.atoz-form-control, .atoz-form-select {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.atoz-form-control:focus, .atoz-form-select:focus {
    outline: none;
    border-color: #721220;
    box-shadow: 0 0 0 3px rgba(114, 18, 32, 0.1);
}

.atoz-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.atoz-preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.atoz-preset-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.atoz-preset-chip:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.atoz-preset-chip.active {
    background: #721220;
    color: #ffffff;
    border-color: #721220;
}

/* Button Group */
.atoz-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.atoz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.atoz-btn-primary {
    background: #721220;
    color: #ffffff !important;
}

.atoz-btn-primary:hover {
    background: #540c16;
}

.atoz-btn-success {
    background: #16a34a;
    color: #ffffff !important;
}

.atoz-btn-success:hover {
    background: #15803d;
}

.atoz-btn-secondary {
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.atoz-btn-secondary:hover {
    background: #e2e8f0;
}

.atoz-btn-outline {
    background: transparent;
    color: #721220 !important;
    border: 1px solid #721220;
}

.atoz-btn-outline:hover {
    background: #fdf2f2;
}

/* Preview Canvas / Box */
.atoz-preview-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.atoz-preview-canvas {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #ffffff;
}

.atoz-preview-empty {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

.atoz-preview-empty i {
    font-size: 42px;
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
}

/* Status & File Stats */
.atoz-file-stats {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 13px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.atoz-file-stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.atoz-file-stats span.stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.atoz-file-stats span.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.atoz-file-stats span.stat-match {
    color: #16a34a;
}

.atoz-file-stats span.stat-warn {
    color: #d97706;
}

/* ==========================================================================
   4. Informational / SEO Content Box Below Tools
   ========================================================================== */
.atoz-tool-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.atoz-tool-info-card h3 {
    font-size: 18px;
    color: #721220;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.atoz-tool-info-card p, .atoz-tool-info-card li {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.atoz-tool-info-card ul, .atoz-tool-info-card ol {
    padding-left: 20px;
    margin: 10px 0 16px 0;
}

.atoz-tool-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.atoz-tool-table th, .atoz-tool-table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
}

.atoz-tool-table th {
    background: #721220;
    color: #ffffff;
    font-weight: 600;
}

.atoz-tool-table tr:nth-child(even) {
    background: #f8fafc;
}

/* ==========================================================================
   5. Document Reordering List (Tool 6: PDF Merger)
   ========================================================================== */
.atoz-doc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.atoz-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
}

.atoz-doc-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

.atoz-doc-info {
    flex-grow: 1;
    overflow: hidden;
}

.atoz-doc-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.atoz-doc-size {
    font-size: 11px;
    color: #64748b;
}

.atoz-doc-actions {
    display: flex;
    gap: 4px;
}

.atoz-doc-btn {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.atoz-doc-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.atoz-doc-btn.btn-remove:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

/* ==========================================================================
   6. Sarkari Bio-Data Styling & Print View (Tool 7)
   ========================================================================== */
.biodata-paper {
    background: #ffffff;
    border: 2px solid #1e293b;
    padding: 30px;
    max-width: 750px;
    margin: 0 auto;
    font-family: 'Roboto', 'Segoe UI', Tahoma, sans-serif;
    color: #111827;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.biodata-header {
    text-align: center;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 12px;
    margin-bottom: 20px;
    position: relative;
}

.biodata-header h2 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    font-weight: 800;
    color: #111827;
}

.biodata-photo-slot {
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    height: 135px;
    border: 1px dashed #64748b;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    color: #64748b;
    overflow: hidden;
}

.biodata-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.biodata-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}

.biodata-table td {
    padding: 6px 8px;
    vertical-align: top;
}

.biodata-table td.bio-label {
    width: 35%;
    font-weight: 700;
    color: #1f2937;
}

.biodata-table td.bio-colon {
    width: 3%;
    font-weight: 700;
}

.biodata-table td.bio-val {
    width: 62%;
    color: #111827;
}

.biodata-edu-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px 0;
    font-size: 12px;
}

.biodata-edu-table th, .biodata-edu-table td {
    border: 1px solid #1e293b;
    padding: 6px 8px;
    text-align: center;
}

.biodata-edu-table th {
    background: #f1f5f9;
    font-weight: 700;
}

.biodata-declaration {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.6;
    color: #374151;
}

.biodata-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    font-size: 13px;
    font-weight: 600;
}

@media print {
    body * {
        visibility: hidden !important;
    }
    .biodata-paper, .biodata-paper * {
        visibility: visible !important;
    }
    .biodata-paper {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
