/* AdminShare Frontend Styles - Modern Flutter Design with Light Green */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.adminshare-container {
    margin: 60px auto;
    padding: 0 20px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adminshare-wrapper {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.15);
    padding: 45px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adminshare-wrapper h2 {
    color: #1B5E20;
    text-align: center;
    margin-bottom: 35px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.adminshare-form-inner {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2E7D32;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #C8E6C9;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #F1F8E9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
    transform: translateY(-2px);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(76, 175, 80, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #E8F5E9;
    color: #2E7D32;
    border: 2px solid #A5D6A7;
}

.btn-secondary:hover {
    background: #C8E6C9;
    border-color: #81C784;
    transform: translateY(-2px);
}

.adminshare-files {
    margin-top: 35px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.files-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid #E8F5E9;
}

.files-header h3 {
    color: #1B5E20;
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.files-header p {
    color: #558B2F;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.files-list {
    margin: 25px 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 2px solid #E8F5E9;
    border-radius: 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #F1F8E9 0%, #FFFFFF 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.file-item:hover {
    border-color: #81C784;
    background: #FFFFFF;
    transform: translateX(-4px);
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.15);
}

.file-info {
    flex: 1;
}

.file-name {
    display: block;
    color: #1B5E20;
    font-weight: 700;
    margin-bottom: 6px;
    word-break: break-word;
    font-size: 15px;
}

.file-size {
    color: #7CB342;
    font-size: 12px;
    letter-spacing: 0.2px;
}

.file-actions {
    margin-left: 15px;
}

.btn-download {
    background: linear-gradient(135deg, #66BB6A 0%, #2E7D32 100%);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.3);
}

.btn-download:active {
    transform: translateY(-1px);
}

.files-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 3px solid #E8F5E9;
}

.g-recaptcha,
.h-captcha {
    margin: 20px 0;
    transform: scale(1);
    transform-origin: 0 0;
    background: #F1F8E9;
    padding: 12px;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .adminshare-wrapper {
        padding: 25px;
        margin: 20px;
    }
    
    .adminshare-wrapper h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-actions {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
    }
    
    .btn-download {
        width: 100%;
        text-align: center;
    }
    
    .g-recaptcha,
    .h-captcha {
        transform: scale(0.77);
        transform-origin: 0 0;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px;
    }
}

/* Loading state */
.adminshare-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error and success messages */
.adminshare-message {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adminshare-message.error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #F44336;
}

.adminshare-message.success {
    background: #E8F5E9;
    color: #1B5E20;
    border-left: 4px solid #4CAF50;
}

/* RTL Support (for Farsi/Persian) */
.rtl .adminshare-wrapper {
    direction: rtl;
}

.rtl .file-item {
    flex-direction: row-reverse;
}

.rtl .file-actions {
    margin-left: 0;
    margin-right: 15px;
}

.rtl .form-group label {
    text-align: right;
}

.rtl .adminshare-message {
    border-left: none;
    border-right: 4px solid;
}

.rtl .file-item:hover {
    transform: translateX(4px);
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
