/* ==========================
   General Styles
========================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen;
}

/* ==========================
   Frontend: Warranty Form + Search
========================== */
#warranty-form,
#warranty-search-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#warranty-form label,
#warranty-search-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
}

#warranty-form input,
#warranty-form textarea,
#warranty-search-form input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#warranty-form button,
#warranty-search-form button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
}

#warranty-form-result,
#warranty-search-results {
    margin-top: 20px;
}

/* ==========================
   Frontend: Warranty View
========================== */
.warranty-details {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.warranty-details ul {
    list-style: none;
    padding: 0;
}

.warranty-details li {
    margin-bottom: 10px;
}

.status-label {
    font-weight: bold;
}

/* ==========================
   Admin: Modal
========================== */
#warranty-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.warranty-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 25px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    position: relative;
}

#warranty-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* ==========================
   Admin: Table
========================== */
#warranty-table table {
    width: 100%;
    border-collapse: collapse;
}

#warranty-table th,
#warranty-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

#warranty-table th {
    background: #f0f0f0;
}

/* ==========================
   Admin: Filters / Tabs
========================== */
.subsubsub li {
    display: inline;
    margin-right: 10px;
}

.subsubsub a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* ==========================
   Admin: Badges
========================== */
.warranty-status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

/* ==========================
   Admin: Documentation Page
========================== */
.wrap h1,
.wrap h2,
.wrap h3 {
    margin-top: 25px;
}

.wrap pre {
    background: #f8f8f8;
    padding: 10px;
    border: 1px solid #ddd;
    overflow-x: auto;
}

.wrap ul {
    margin: 10px 0 20px 20px;
}

/* ==========================
   Button: Danger Style
========================== */
.button-danger {
    background: #dc3232;
    border-color: #a00;
    color: #fff;
}
.button-danger:hover {
    background: #a00;
    border-color: #800000;
}