/* Download Button Widget Styles */

.dbw-download-button {
    display: inline-block;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}

.dbw-download-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

.dbw-download-button:active {
    transform: translateY(1px);
}

/* Modal Styles */
.dbw-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.dbw-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.dbw-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: color 0.3s ease;
}

.dbw-close:hover,
.dbw-close:focus {
    color: #000;
}

.dbw-modal-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    padding-right: 40px;
}

.dbw-modal-description {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Form Styles */
.dbw-form-group {
    margin-bottom: 20px;
}

.dbw-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.dbw-form-group input[type="text"],
.dbw-form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.dbw-form-group input[type="text"]:focus,
.dbw-form-group input[type="email"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.dbw-form-group input[type="text"]:invalid,
.dbw-form-group input[type="email"]:invalid {
    border-color: #dc3545;
}

.dbw-submit-button {
    background-color: #007cba;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dbw-submit-button:hover {
    background-color: #005a87;
    transform: translateY(-1px);
}

.dbw-submit-button:active {
    transform: translateY(0);
}

.dbw-submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Loading Styles */
.dbw-loading {
    text-align: center;
    padding: 20px;
}

.dbw-loading p {
    margin: 0;
    font-size: 16px;
    color: #666;
    position: relative;
}

.dbw-loading p:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #007cba;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.dbw-success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.dbw-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dbw-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .dbw-modal-title {
        font-size: 20px;
    }
    
    .dbw-modal-description {
        font-size: 14px;
    }
    
    .dbw-form-group input[type="text"],
    .dbw-form-group input[type="email"] {
        padding: 10px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .dbw-modal-content {
        margin: 5% auto;
        padding: 15px;
    }
    
    .dbw-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    .dbw-modal-title {
        font-size: 18px;
        padding-right: 35px;
    }
} 