/* DVR Version Request - Frontend Styles */

/* Wrapper - Minimal */
.dvr-version-request-wrapper {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* Current Version Display */
.dvr-current-version {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 0;
    border-left: 4px solid #4caf50;
}

.dvr-version-label {
    font-weight: 600;
    color: #2e7d32;
    font-size: 14px;
}

.dvr-version-value {
    font-weight: 700;
    color: #1b5e20;
    font-size: 1.15em;
    background: #fff;
    padding: 4px 12px;
    border-radius: 0;
    box-shadow: none;
}

.dvr-request-btn {
    display: flex !important;
    width: 100% !important;
    align-items: center;
    justify-content: center;
    padding: 12px 20px !important;
    background: #4caf50 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dvr-request-btn:hover {
    background: #43a047 !important;
    box-shadow: none !important;
}

.dvr-request-btn:active {
    background: #388e3c !important;
}

/* Existing Request Notice */
.dvr-existing-request {
    padding: 15px;
    background: #e8f4fd;
    border-left: none;
    border-radius: 0;
    color: #0c5460;
}

.dvr-existing-request p {
    margin: 0 0 12px 0;
}

.dvr-cancel-request-btn {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: #FF0000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.dvr-cancel-request-btn:hover {
    background: #cc0000 !important;
    color: #fff !important;
}

.dvr-cancel-request-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal Styles */
.dvr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.dvr-modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 0 !important;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: dvrModalIn 0.3s ease;
}

@keyframes dvrModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dvr-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease;
    color: #666 !important;
    z-index: 100 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.dvr-modal-close:hover {
    background: #f5f5f5 !important;
    color: #333 !important;
    border-color: #ccc !important;
    transform: scale(1.1);
}

.dvr-modal-content h3 {
    margin: 0 0 20px;
    font-size: 22px;
    color: #202124;
}

/* Form Styles */
.dvr-request-form {
    margin: 0;
}

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

.dvr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.dvr-form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.dvr-form-group input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.dvr-form-group textarea {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    resize: none !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    transition: border-color 0.2s ease;
}

.dvr-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.dvr-form-help {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6c757d;
}

.dvr-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.dvr-submit-btn {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dvr-submit-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-1px);
}

.dvr-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.dvr-cancel-btn {
    padding: 12px 20px;
    background: #f1f3f4;
    color: #5f6368;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dvr-cancel-btn:hover {
    background: #e8eaed;
}

/* Form Messages */
.dvr-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.dvr-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dvr-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login Prompt Styles */
.dvr-login-prompt {
    text-align: center;
}

.dvr-login-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.dvr-login-prompt h3 {
    text-align: center;
}

.dvr-login-prompt p {
    color: #6c757d;
    margin-bottom: 24px;
}

.dvr-login-btn {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: #4caf50 !important;
    color: #fff !important;
    text-decoration: none !important;
    text-align: center;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.dvr-login-btn:hover {
    background: #43a047 !important;
}

/* Responsive */
@media (max-width: 480px) {
    .dvr-modal-content {
        padding: 24px 20px;
    }

    .dvr-form-actions {
        flex-direction: column;
    }

    .dvr-cancel-btn {
        order: 2;
    }
}