/*
 * File: css/protect-pdf.css
 * Description: Specific styles for PDF Protection interface
 * Dependency: tools.css (Loads base tool styles)
 */

/* 1. File Info Bar */
.file-info {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(147, 112, 219, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.file-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text-dark);
}

.file-meta {
    font-size: 0.85rem;
    color: #666;
}

/* 2. Password Configuration Panel */
.password-config {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.security-badge-container {
    text-align: center;
    margin-bottom: 25px;
}

.security-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #c8e6c9;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Password Input with Eye Toggle */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.password-input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 112, 219, 0.1);
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #888;
    padding: 5px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Password Strength Meter */
.password-strength {
    height: 4px;
    background: #eee;
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak { background-color: #ff4757; width: 33%; }
.strength-medium { background-color: #ffa502; width: 66%; }
.strength-strong { background-color: #2ed573; width: 100%; }

/* Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Custom Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.checkbox-container:hover {
    background: #f0f0f0;
}

.checkbox-container input {
    margin-right: 10px;
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

/* 3. Results Section specific tweaks */
.success-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-file-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
    text-align: center;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@media (max-width: 600px) {
    .permissions-grid {
        grid-template-columns: 1fr;
    }
}