/* Custom Styles for DailyTools SaaS Product */

/* Modal Styles */
#modalContainer.hidden,
#loginModal.hidden {
    display: none;
}

#modalContainer.visible,
#loginModal.visible {
    display: flex;
}

/* Tool Button Styles */
.tool-btn {
    transition: all 0.3s ease;
    width: auto;
    display: inline-block;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Pricing Card Styles */
#pricing .grid > div:nth-child(2) {
    transform: scale(1.05);
    z-index: 10;
}

@media (max-width: 768px) {
    #pricing .grid > div:nth-child(2) {
        transform: scale(1);
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Tool Content Styles */
.tool-content {
    padding: 20px;
}

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

.tool-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.tool-result pre {
    white-space: pre-wrap;
    word-break: break-all;
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Modal Positioning */
#modalContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* QR Code Container */
.qr-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.qr-code {
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
}

/* Result Box */
.result-box {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3b82f6;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Box */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Password Strength Meter */
.strength-meter {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.strength-weak { width: 33%; background-color: #ef4444; }
.strength-medium { width: 66%; background-color: #f59e0b; }
.strength-strong { width: 100%; background-color: #10b981; }

/* Tool Card Hover Effect */
.tool-card {
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}