/* 
 * DOC Subscription Manager Styles 
 */

/* Unified Form Container */
.doc-form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #f0f0f0;
}

.doc-form-container h2,
.doc-form-container h3 {
    margin-top: 0;
    font-size: 26px;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 800;
}

.doc-form-container h3 {
    font-size: 20px;
    text-align: left;
    margin-top: 20px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.doc-form-group {
    margin-bottom: 20px;
}

.doc-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.doc-form-group input,
.doc-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f8fafc;
}

.doc-form-group input:focus,
.doc-form-group select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    background: #fff;
}

.doc-form-group input[readonly] {
    background: #edf2f7;
    cursor: not-allowed;
    color: #718096;
}

.doc-form-submit {
    width: 40%;
    padding: 16px;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

p.doc-form-submit-wrapper {
    text-align: center;
}

.doc-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(49, 130, 206, 0.3);
}

/* Feedback Messages */
.doc-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
}

.doc-message-success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.doc-message-error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.doc-expiry-notice {
    text-align: center;
    color: #e53e3e;
    font-weight: 700;
    padding: 25px;
    border: 2px dashed #fc8181;
    border-radius: 14px;
    background: #fff5f5;
}

.doc-info-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #ebf4ff;
    border-radius: 30px;
    font-size: 13px;
    color: #2b6cb0;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Dashboard Specific */
.doc-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.doc-logout-btn {
    padding: 8px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #e53e3e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.doc-logout-btn:hover {
    background: #fff5f5;
    border-color: #feb2b2;
}

.doc-table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    height: 550px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.doc-table th {
    background: #f7fafc;
    padding: 12px 16px;
    font-size: 13px;
    text-transform: uppercase;
    color: #718096;
    font-weight: 700;
    border-bottom: 2px solid #edf2f7;
}

.doc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
    color: #2d3748;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

.doc-plan-tag {
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

/* Warranty Form Specifics */
.alegria-warranty-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    background: #f8fafc;
    min-height: 100px;
    font-family: inherit;
    box-sizing: border-box;
}

.alegria-warranty-form p {
    margin-bottom: 20px;
}

.alegria-warranty-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.alegria-warranty-form fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    background: #fcfcfc;
}

.alegria-warranty-form legend {
    font-weight: 700;
    padding: 0 10px;
    color: #2b6cb0;
}

.warranty-notice {
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.warranty-notice ul {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.warranty-notice li {
    margin-bottom: 5px;
}


.alegria-warranty-form label {
    display: flex;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    align-items: baseline;
    gap: 10px;
}

.alegria-warranty-form label input[type=radio] {
    visibility: visible;
    opacity: 1;
    width: 14px;
    height: 14px;
    display: block;
}

.alegria-warranty-form label input[type=checkbox] {
    visibility: visible;
    opacity: 1;
    width: 14px;
    height: 14px;
    display: block;
}

textarea#describe-details {
    margin-top: 15px;
}

legend.ack-legend {
    padding: 0px;
    margin-bottom: 20px;
    font-size: 25px;
}

/* Pagination Wrapper */
.tablenav-pages {
    margin-top: 15px;
    text-align: right;
}

/* Page links */
.tablenav-pages .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ccd0d4;
    background: #fff;
    color: #2271b1;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

/* Hover */
.tablenav-pages .page-numbers:hover {
    background: #f0f6fc;
    border-color: #2271b1;
}

/* Current page */
.tablenav-pages .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    font-weight: 600;
}

/* Disabled prev/next */
.tablenav-pages .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* Admin Dashboard Stats & Grid */
.doc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0 40px;
}

.doc-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.doc-stat-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.doc-stat-card .doc-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2271b1;
}

.doc-admin-wrap table {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.doc-admin-wrap h2 {
    margin-top: 40px;
    font-size: 20px;
    border-bottom: 2px solid #2271b1;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.badge-participation {
    background: #e7f3ff;
    color: #007bff;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 12px;
}


.doc-upload-error {
    color: #b00020;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
}


/* Date field with calendar icon */
.doc-form-container input#noticed_date,
.doc-form-container input#reported_date {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23999' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 18H5V9h14v11z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 42px;
    cursor: pointer;
}


.doc-form-container input:required:invalid {
    box-shadow: none;
}


/* ----------------------------
   Fix Flatpickr Header Layout
----------------------------- */

.flatpickr-months {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.flatpickr-month {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
}

.flatpickr-current-month {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
}

.flatpickr-current-month span.cur-month {
    margin: 0 !important;
}

.flatpickr-current-month input.cur-year {
    width: auto !important;
    padding: 0 !important;
    margin-left: 4px !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    position: relative !important;
    top: 0 !important;
}




/* Media Fiedl Designe css */

.upload-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#fileInput {
    display: none;
    /* hide default input */
}

.upload-btn {
    padding: 10px 18px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.upload-btn:hover {
    background: #357abd;
}

.file-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns */
    gap: 12px;
    margin-bottom: 25px;
}

.file-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafc;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e6e9f0;
    font-size: 13px;
}

.file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    font-size: 14px;
}




.doc-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.doc-status-yellow {
    background: #fff3cd;
    color: #856404;
}

.doc-status-green {
    background: #d4edda;
    color: #155724;
}

.doc-status-blue {
    background: #d1ecf1;
    color: #0c5460;
}

.doc-status-red {
    background: #f8d7da;
    color: #721c24;
}

/* View Form Button */
.doc-view-form-btn {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.doc-view-form-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
    color: #ffffff !important;
}

a.button.button-small.doc-view-form-btn {
    color: #50575e !important;
}