/* Admin Panel Styles - Following Style Guide */

.admin-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    background-color: rgba(248, 248, 248, 1);
}

/* Back to Website Button */
.back-to-website-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin-bottom: 24px;
    background-color: rgba(231, 208, 25, 1);
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    border-radius: 10px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.back-to-website-button:hover {
    background-color: rgba(210, 190, 20, 1);
    transform: translateY(-2px);
}

.back-to-website-button:active {
    transform: translateY(0);
}

.admin-card {
    background: rgba(255, 255, 255, 1);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1200px;
    width: 100%;
}

.admin-title {
    font-family: Poppins, sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 8px;
    text-align: center;
}

.admin-subtitle {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(56, 56, 56, 1);
    text-align: center;
    margin-bottom: 32px;
}

.admin-step {
    width: 100%;
}

.admin-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

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

.form-label {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    display: block;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(255, 255, 255, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: rgba(231, 208, 25, 1);
    box-shadow: 0 0 0 3px rgba(231, 208, 25, 0.1);
}

#frameName {
    max-width: 480px;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(255, 255, 255, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 12px;
    transition: all 0.2s ease;
    resize: vertical;
    box-sizing: border-box;
}

.form-textarea:focus {
    outline: none;
    border-color: rgba(231, 208, 25, 1);
    box-shadow: 0 0 0 3px rgba(231, 208, 25, 0.1);
}

.error-message {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #d32f2f;
    display: block;
    margin-top: 4px;
}

.success-message {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #4caf50;
    display: block;
    margin-top: 4px;
}

.auth-button {
    width: 100%;
    padding: 12px 30px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(231, 208, 25, 1);
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-top: 8px;
}

.auth-button:hover:not(:disabled) {
    background-color: rgba(200, 180, 20, 1);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.logout-button {
    width: 100%;
    padding: 12px 30px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(0, 0, 0, 1);
    color: rgba(255, 255, 255, 1);
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.logout-button:hover {
    background-color: rgba(50, 50, 50, 1);
}

/* Tab Navigation */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin: 32px 0 24px;
    border-bottom: 2px solid rgba(242, 244, 246, 1);
}

.admin-tab {
    padding: 12px 24px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(56, 56, 56, 1);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: -2px;
}

.admin-tab:hover {
    color: rgba(33, 33, 33, 1);
    background-color: rgba(248, 248, 248, 1);
}

.admin-tab.active {
    color: rgba(231, 208, 25, 1);
    border-bottom-color: rgba(231, 208, 25, 1);
    font-weight: 600;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.tab-title {
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 8px;
}

.tab-subtitle {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(56, 56, 56, 1);
    margin-bottom: 24px;
}

/* Order Status Tab */
.orders-container {
    width: 100%;
}

.orders-header {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 12px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: rgba(231, 208, 25, 1);
    box-shadow: 0 0 0 3px rgba(231, 208, 25, 0.1);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background-color: rgba(248, 248, 248, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
}

.order-card.clickable-order {
    cursor: pointer;
}

.order-card.clickable-order:hover {
    border-color: rgba(231, 208, 25, 1);
    box-shadow: 0 2px 8px rgba(231, 208, 25, 0.15);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.order-info {
    flex: 1;
}

.order-code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 4px;
}

.order-email {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: rgba(56, 56, 56, 1);
}

.order-date {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: rgba(56, 56, 56, 1);
}

.order-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(242, 244, 246, 1);
}

.order-product-name {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
}

.order-amount {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
}

.order-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status-badge.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: rgba(184, 134, 11, 1);
}

.order-status-badge.status-in_progress {
    background-color: rgba(33, 150, 243, 0.2);
    color: rgba(13, 71, 161, 1);
}

.order-status-badge.status-completed {
    background-color: rgba(76, 175, 80, 0.2);
    color: rgba(27, 94, 32, 1);
}

.order-status-badge.status-shipped {
    background-color: rgba(156, 39, 176, 0.2);
    color: rgba(74, 20, 140, 1);
}

.order-status-badge.status-delivered {
    background-color: rgba(76, 175, 80, 0.3);
    color: rgba(27, 94, 32, 1);
}

.order-status-badge.status-cancelled {
    background-color: rgba(244, 67, 54, 0.2);
    color: rgba(183, 28, 28, 1);
}

.order-click-hint {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: rgba(231, 208, 25, 1);
    margin-top: 8px;
    text-align: right;
    font-weight: 500;
}

.order-status-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(242, 244, 246, 1);
}

.status-form-group {
    margin-bottom: 12px;
}

.status-select {
    width: 100%;
    padding: 10px 14px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 1);
    cursor: pointer;
    box-sizing: border-box;
}

.status-select:focus {
    outline: none;
    border-color: rgba(231, 208, 25, 1);
    box-shadow: 0 0 0 3px rgba(231, 208, 25, 0.1);
}

.status-notes {
    width: 100%;
    padding: 10px 14px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 12px;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

.status-notes:focus {
    outline: none;
    border-color: rgba(231, 208, 25, 1);
    box-shadow: 0 0 0 3px rgba(231, 208, 25, 0.1);
}

.update-status-button {
    padding: 10px 24px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(231, 208, 25, 1);
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-status-button:hover:not(:disabled) {
    background-color: rgba(200, 180, 20, 1);
}

.update-status-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status-history {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(242, 244, 246, 1);
}

.status-history-title {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 8px;
}

.status-history-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(242, 244, 246, 1);
}

.status-history-item:last-child {
    border-bottom: none;
}

.status-history-status {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    margin-right: 8px;
}

.status-history-date {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: rgba(56, 56, 56, 1);
}

.status-history-notes {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: rgba(56, 56, 56, 1);
    margin-top: 4px;
    font-style: italic;
}

.loading-message {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(56, 56, 56, 1);
    text-align: center;
    padding: 40px 20px;
}

.empty-message {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(56, 56, 56, 1);
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(248, 248, 248, 1);
    border-radius: 12px;
}

/* Testimonials Tab */
.testimonials-container {
    width: 100%;
}

.add-testimonial-section {
    background-color: rgba(248, 248, 248, 1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.add-testimonial-section h3 {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 16px;
}

/* Postage Options Tab */
.postage-options-container {
    width: 100%;
}

.add-postage-option-section {
    background-color: rgba(248, 248, 248, 1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.add-postage-option-section h3 {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 16px;
}

/* Settings Section (Custom Case Price) */
.settings-section {
    background-color: rgba(248, 248, 248, 1);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
    border-top: 1px solid rgba(221, 221, 221, 1);
}

.settings-section h3 {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 16px;
}

.settings-section .tab-subtitle {
    margin-bottom: 16px;
}

.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    width: 100%;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-card:hover {
    border-color: rgba(231, 208, 25, 1);
    box-shadow: 0 2px 8px rgba(231, 208, 25, 0.15);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.testimonial-name {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
}

.testimonial-date {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: rgba(56, 56, 56, 1);
}

.testimonial-text {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(56, 56, 56, 1);
    line-height: 1.6;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.testimonial-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: rgba(33, 33, 33, 1);
    cursor: pointer;
}

.testimonial-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.delete-testimonial-button {
    padding: 8px 16px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    background-color: #d32f2f;
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-testimonial-button:hover {
    background-color: #b71c1c;
}

/* Repair Prices Tab */
.repair-prices-container {
    width: 100%;
}

.add-items-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.add-item-card {
    background-color: rgba(248, 248, 248, 1);
    border-radius: 16px;
    padding: 20px;
}

.add-item-card h3 {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 16px;
}

.inline-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-button {
    padding: 12px 24px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(231, 208, 25, 1);
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-button:hover:not(:disabled) {
    background-color: rgba(200, 180, 20, 1);
}

.action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.repair-prices-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.device-section {
    background-color: rgba(255, 255, 255, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 16px;
    padding: 24px;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.device-name-container,
.model-name-container,
.service-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.device-name-display,
.model-name-display,
.service-name-display {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
}

.model-name-display {
    font-size: 18px;
}

.service-name-display {
    font-size: 16px;
}

.device-name-edit,
.model-name-edit,
.service-name-edit {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    padding: 4px 8px;
    border: 2px solid rgba(231, 208, 25, 1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 1);
    width: 100%;
    max-width: 300px;
}

.model-name-edit {
    font-size: 18px;
    max-width: 250px;
}

.service-name-edit {
    font-size: 16px;
    max-width: 200px;
}

.device-name {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
}

.device-actions {
    display: flex;
    gap: 8px;
}

.edit-button {
    padding: 8px 16px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(242, 244, 246, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-button:hover:not(:disabled) {
    background-color: rgba(231, 208, 25, 0.2);
    border-color: rgba(231, 208, 25, 1);
}

.save-edit-button {
    padding: 8px 16px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    background-color: rgba(76, 175, 80, 1);
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-edit-button:hover:not(:disabled) {
    background-color: rgba(56, 142, 60, 1);
}

.cancel-edit-button {
    padding: 8px 16px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(242, 244, 246, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-edit-button:hover:not(:disabled) {
    background-color: rgba(224, 224, 224, 1);
}

.delete-button {
    padding: 8px 16px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    background-color: #d32f2f;
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-button:hover {
    background-color: #b71c1c;
}

.add-model-button {
    padding: 8px 16px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(231, 208, 25, 1);
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-model-button:hover {
    background-color: rgba(200, 180, 20, 1);
}

.models-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 20px;
}

.model-section {
    background-color: rgba(248, 248, 248, 1);
    border-radius: 12px;
    padding: 20px;
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.model-name {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.prices-table th,
.prices-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(242, 244, 246, 1);
}

.prices-table th {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(248, 248, 248, 1);
}

.prices-table td {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: rgba(56, 56, 56, 1);
}

.price-input {
    width: 100px;
    padding: 8px 12px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 8px;
    box-sizing: border-box;
}

.price-input:focus {
    outline: none;
    border-color: rgba(231, 208, 25, 1);
    box-shadow: 0 0 0 3px rgba(231, 208, 25, 0.1);
}

.price-save-button {
    padding: 6px 12px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(231, 208, 25, 1);
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-save-button:hover:not(:disabled) {
    background-color: rgba(200, 180, 20, 1);
}

.price-save-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-service-button {
    padding: 8px 16px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(231, 208, 25, 1);
    border: 2px solid rgba(231, 208, 25, 1);
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.add-service-button:hover {
    background-color: rgba(200, 180, 20, 1);
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 14px;
}

.message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.message.error {
    background-color: #ffebee;
    color: #c62828;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .testimonials-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .admin-card {
        padding: 24px;
    }
    
    .admin-title {
        font-size: 28px;
    }
    
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .admin-tab {
        flex: 1;
        min-width: 100px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .order-header {
        flex-direction: column;
    }
    
    .testimonial-header {
        flex-direction: column;
    }
    
    .testimonials-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .testimonial-checkbox-label {
        width: 100%;
    }
    
    .delete-testimonial-button {
        width: 100%;
    }
    
    .device-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .models-list {
        margin-left: 0;
    }
    
    .add-items-section {
        grid-template-columns: 1fr;
    }
    
    .prices-table {
        font-size: 12px;
    }
    
    .prices-table th,
    .prices-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .admin-card {
        padding: 20px 16px;
    }
    
    .admin-title {
        font-size: 24px;
    }
    
    .tab-title {
        font-size: 20px;
    }
    
    .order-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .order-modal-title {
        font-size: 24px;
    }
    
    .order-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .testimonials-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .testimonial-card {
        padding: 16px;
    }
    
    .testimonial-name {
        font-size: 16px;
    }
    
    .testimonial-text {
        font-size: 13px;
    }
    
    .order-detail-value {
        text-align: left;
    }
    
    .order-message-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Order Modal Styles */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.order-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.order-modal-content {
    position: relative;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    z-index: 2001;
    margin: 20px;
}

.order-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: rgba(56, 56, 56, 1);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2002;
}

.order-modal-close:hover {
    background-color: rgba(248, 248, 248, 1);
    color: rgba(33, 33, 33, 1);
}

.order-modal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(242, 244, 246, 1);
}

.order-modal-title {
    font-family: Poppins, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    margin: 0;
}

.order-modal-details {
    background-color: rgba(248, 248, 248, 1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(242, 244, 246, 1);
}

.order-detail-row:last-child {
    border-bottom: none;
}

.order-detail-label {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(56, 56, 56, 1);
}

.order-detail-value {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(33, 33, 33, 1);
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: rgba(184, 134, 11, 1);
}

.status-badge.status-in_progress {
    background-color: rgba(33, 150, 243, 0.2);
    color: rgba(13, 71, 161, 1);
}

.status-badge.status-completed {
    background-color: rgba(76, 175, 80, 0.2);
    color: rgba(27, 94, 32, 1);
}

.status-badge.status-shipped {
    background-color: rgba(156, 39, 176, 0.2);
    color: rgba(74, 20, 140, 1);
}

.status-badge.status-delivered {
    background-color: rgba(76, 175, 80, 0.3);
    color: rgba(27, 94, 32, 1);
}

.status-badge.status-cancelled {
    background-color: rgba(244, 67, 54, 0.2);
    color: rgba(183, 28, 28, 1);
}

.order-messages-section {
    margin-bottom: 24px;
}

.order-messages-title {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 16px;
}

.order-messages-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    background-color: rgba(248, 248, 248, 1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-message-item {
    background-color: rgba(255, 255, 255, 1);
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid rgba(231, 208, 25, 1);
}

.order-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.order-message-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.order-message-status.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: rgba(184, 134, 11, 1);
}

.order-message-status.status-in_progress {
    background-color: rgba(33, 150, 243, 0.2);
    color: rgba(13, 71, 161, 1);
}

.order-message-status.status-completed {
    background-color: rgba(76, 175, 80, 0.2);
    color: rgba(27, 94, 32, 1);
}

.order-message-status.status-shipped {
    background-color: rgba(156, 39, 176, 0.2);
    color: rgba(74, 20, 140, 1);
}

.order-message-status.status-delivered {
    background-color: rgba(76, 175, 80, 0.3);
    color: rgba(27, 94, 32, 1);
}

.order-message-status.status-cancelled {
    background-color: rgba(244, 67, 54, 0.2);
    color: rgba(183, 28, 28, 1);
}

.order-message-date {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: rgba(56, 56, 56, 1);
}

.order-message-text {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: rgba(33, 33, 33, 1);
    line-height: 1.6;
    margin: 8px 0;
    white-space: pre-wrap;
}

.order-message-author {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: rgba(56, 56, 56, 1);
    font-style: italic;
    margin-top: 8px;
}

.order-message-form-section {
    border-top: 2px solid rgba(242, 244, 246, 1);
    padding-top: 24px;
}

.order-message-form-title {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 16px;
}

.order-message-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Service Management Styles */
.services-management-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    min-height: 100px;
}

.service-item {
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(242, 244, 246, 1);
    border-radius: 8px;
    padding: 12px;
}

.service-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.service-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Repair Modal Styles (for Add Model) */
.repair-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.repair-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.repair-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.repair-modal-content {
    position: relative;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    padding: 32px;
    z-index: 2001;
    margin: 20px;
}

.repair-modal-content-large {
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.repair-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: rgba(56, 56, 56, 1);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2002;
}

.repair-modal-close:hover {
    background-color: rgba(248, 248, 248, 1);
    color: rgba(33, 33, 33, 1);
}

.repair-modal-title {
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 24px;
}

.repair-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.error-message {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #d32f2f;
    display: none;
    margin-top: 4px;
}

.success-message {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #4caf50;
    display: none;
    margin-top: 4px;
}

/* Service Selection Modal Styles */
.select-services-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 16px 0;
    margin-bottom: 20px;
}

.service-selection-item {
    padding: 12px;
    border-bottom: 1px solid rgba(242, 244, 246, 1);
}

.service-selection-item:last-child {
    border-bottom: none;
}

.service-selection-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    color: rgba(33, 33, 33, 1);
}

.service-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: rgba(231, 208, 25, 1);
}

.service-selection-name {
    flex: 1;
}

.repair-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.action-button-secondary {
    padding: 12px 24px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(242, 244, 246, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button-secondary:hover:not(:disabled) {
    background-color: rgba(224, 224, 224, 1);
    border-color: rgba(224, 224, 224, 1);
}

@media (max-width: 768px) {
    .repair-modal-content {
        width: 95%;
        padding: 24px;
    }
    
    .repair-modal-content-large {
        max-width: 95%;
    }
    
    .repair-modal-title {
        font-size: 20px;
    }
    
    .device-name-container,
    .model-name-container,
    .service-name-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .device-name-edit,
    .model-name-edit,
    .service-name-edit {
        max-width: 100%;
    }
    
    .repair-modal-actions {
        flex-direction: column;
    }
    
    .action-button-secondary {
        width: 100%;
    }
}

/* Phone Case Frames Management */
.frames-container {
    width: 100%;
}

.frames-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.add-frame-button {
    padding: 12px 24px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(231, 208, 25, 1);
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-frame-button:hover {
    background-color: rgba(200, 180, 20, 1);
}

.frames-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.frame-card {
    background-color: rgba(255, 255, 255, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.frame-card:hover {
    border-color: rgba(231, 208, 25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.frame-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.frame-card-title {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    margin: 0;
}

.frame-card-device {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: rgba(56, 56, 56, 1);
    margin-top: 4px;
}

.frame-card-preview-container {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: rgba(248, 248, 248, 1);
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-card-preview {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.frame-card-zone-overlay {
    position: absolute;
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
}

.frame-card-actions {
    display: flex;
    gap: 8px;
}

.frame-action-button {
    flex: 1;
    padding: 8px 16px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.frame-action-button.edit {
    background-color: rgba(231, 208, 25, 1);
    color: rgba(33, 33, 33, 1);
}

.frame-action-button.edit:hover {
    background-color: rgba(200, 180, 20, 1);
}

.frame-action-button.delete {
    background-color: rgba(211, 47, 47, 1);
    color: rgba(255, 255, 255, 1);
}

.frame-action-button.delete:hover {
    background-color: rgba(198, 40, 40, 1);
}

.frame-status-badge {
    display: inline-block;
    padding: 4px 12px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 8px;
}

.frame-status-badge.active {
    background-color: rgba(76, 175, 80, 0.1);
    color: rgba(76, 175, 80, 1);
}

.frame-status-badge.inactive {
    background-color: rgba(158, 158, 158, 0.1);
    color: rgba(158, 158, 158, 1);
}


/* Zone Editor */
.zone-editor-modal .repair-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.zone-editor-container {
    display: flex;
    gap: 24px;
    flex-direction: column;
}

.zone-preview-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zone-preview {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(248, 248, 248, 1);
    border-radius: 12px;
    overflow: hidden;
}

.zone-preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.zone-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.zone-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.zone-control-button {
    padding: 10px 20px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(231, 208, 25, 1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zone-control-button:hover {
    background-color: rgba(200, 180, 20, 1);
}

.zones-list-container {
    margin-top: 24px;
}

.zones-list-container h3 {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 16px;
}

.zones-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: rgba(248, 248, 248, 1);
    border-radius: 8px;
}

.zone-item-info {
    flex: 1;
}

.zone-item-name {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 4px;
}

.zone-item-coords {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: rgba(56, 56, 56, 1);
}

.zone-item-delete {
    padding: 6px 12px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    background-color: rgba(211, 47, 47, 1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zone-item-delete:hover {
    background-color: rgba(198, 40, 40, 1);
}

.form-hint {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: rgba(56, 56, 56, 1);
    margin-top: 4px;
}

/* Frame Drawing Canvas */
.frame-editor-modal .repair-modal-content {
    max-width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: visible;
    width: fit-content !important;
    min-width: 600px;
    margin: 0 auto;
    padding: 30px;
}

.frame-editor-modal .repair-form {
    width: fit-content;
    min-width: 0;
}

.frame-step {
    display: none;
    width: fit-content;
    min-width: 0;
}

.frame-step.active {
    display: block;
}

.frame-image-preview {
    margin: 16px 0;
    text-align: center;
}

.frame-image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    border: 2px solid rgba(242, 244, 246, 1);
}

.frame-step-buttons {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}

.frame-step-buttons button {
    flex: 1;
}

.frame-step-2-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: fit-content;
    min-width: 0;
}

.frame-step-2-left {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.frame-step-2-right {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.frame-drawing-wrapper {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.frame-drawing-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: rgba(248, 248, 248, 1);
    border-radius: 12px;
    border: 2px solid rgba(242, 244, 246, 1);
    max-height: calc(85vh - 100px);
    overflow: auto;
    width: auto !important;
    min-width: 0;
    flex-shrink: 0;
}

.frame-drawing-canvas {
    border: 2px solid rgba(231, 208, 25, 1);
    border-radius: 8px;
    background-image: 
        linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    cursor: crosshair;
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.zone-grid-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    pointer-events: none;
    border-radius: 8px;
    z-index: 0;
}

.zone-grid-overlay .grid-square {
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid rgba(200, 200, 200, 0.3);
    pointer-events: none;
}

.frame-drawing-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.drawing-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-label {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
    white-space: nowrap;
}

.thickness-slider {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: rgba(242, 244, 246, 1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.thickness-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(231, 208, 25, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.thickness-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(231, 208, 25, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.thickness-value {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
    min-width: 35px;
    text-align: left;
}

.drawing-hint {
    font-family: Poppins, sans-serif;
  font-size: 12px;
  color: rgba(56, 56, 56, 1);
  font-style: italic;
}

.control-button {
    padding: 10px 20px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(242, 244, 246, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-button:hover:not(:disabled) {
    background-color: rgba(224, 224, 224, 1);
    border-color: rgba(224, 224, 224, 1);
}

.control-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.control-button.secondary {
    background-color: rgba(242, 244, 246, 1);
    border-color: rgba(242, 244, 246, 1);
    color: rgba(33, 33, 33, 1);
}

.control-button.secondary:hover:not(:disabled) {
    background-color: rgba(224, 224, 224, 1);
    border-color: rgba(224, 224, 224, 1);
}

@media (max-width: 768px) {
    .frames-list {
        grid-template-columns: 1fr;
    }
    
    .zone-editor-container {
        flex-direction: column;
    }
    
    .zone-preview {
        max-width: 100%;
    }
    
    .frame-step-2-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .frame-step-2-left {
        flex: 1;
    }
    
    .frame-drawing-container {
        padding: 16px;
    }
    
    .frame-drawing-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .drawing-hint {
        text-align: center;
    }
}

/* Custom Cases Tab Styles */
.custom-cases-container {
    width: 100%;
}

.custom-cases-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.custom-case-item {
    background-color: rgba(255, 255, 255, 1);
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-case-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(242, 244, 246, 1);
}

.custom-case-order-id {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    margin: 0;
    font-family: 'Courier New', monospace;
}

.custom-case-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.custom-case-image-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-case-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: rgba(248, 248, 248, 1);
    border: 2px dashed rgba(242, 244, 246, 1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.custom-case-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.custom-case-image-placeholder span {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: rgba(56, 56, 56, 0.6);
    text-align: center;
    padding: 20px;
}

.custom-case-image-label {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(33, 33, 33, 1);
    text-align: center;
    margin: 0;
}

@media (max-width: 768px) {
    .custom-cases-list {
        grid-template-columns: 1fr;
    }
    
    .custom-case-images {
        grid-template-columns: 1fr;
    }
}
