/* style.css - প্রভাতী হোমওয়ার্ক অ্যাপ */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Nikosh', 'SolaimanLipi', 'Kalpurush', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* iOS সিলেক্ট ফিক্স */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Android সিলেক্ট ফিক্স */
.android-device select {
    font-size: 16px !important;
    min-height: 48px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.5;
    padding: 5px;
    min-height: 100vh;
    touch-action: manipulation;
}

/* লোডিং স্ক্রীন */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a5795, #1c3b6a);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 300px;
}

.spinner {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.spinner i {
    color: #ffcc00;
}

.loading-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.loading-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: #ffcc00;
    border-radius: 3px;
    width: 30%;
    animation: loadingProgress 2s ease-in-out infinite alternate;
}

@keyframes loadingProgress {
    from { width: 30%; }
    to { width: 70%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* কন্টেইনার */
.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-height: calc(100vh - 10px);
    animation: containerSlide 0.5s ease;
}

@keyframes containerSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* হেডার */
header {
    background: linear-gradient(135deg, #3a5795, #1c3b6a);
    color: white;
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

header h1 i {
    color: #ffcc00;
    font-size: 1.6rem;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.subtitle i {
    color: #00ff88;
}

/* AI স্ট্যাটাস */
.ai-status {
    position: absolute;
    top: 15px;
    right: 20px;
}

.ai-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-active {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.ai-inactive {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

/* মেইন কন্টেন্ট */
.main-content {
    padding: 15px;
}

/* হোমওয়ার্ক সেকশন */
.homework-section {
    margin-bottom: 20px;
}

/* নির্বাচিত ডিসপ্লে */
.selected-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    animation: fadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

.selected-display:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffcc00, #ff3366);
}

.selected-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.selected-content h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-content h3:before {
    content: '📚';
    font-size: 1.3rem;
}

.change-selection-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.change-selection-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* সিলেক্টর কন্টেইনার */
.selector-container {
    margin-bottom: 20px;
    animation: slideDown 0.5s ease;
}

/* AI টগল */
.ai-toggle-container {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border: 2px solid #e0e0ff;
}

.toggle-switch {
    margin-bottom: 10px;
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.toggle-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #3a5795;
}

.toggle-text i {
    color: #00ff88;
    font-size: 1.2rem;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 13px;
    transition: all 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked + .toggle-label .toggle-slider {
    background-color: #00ff88;
}

input[type="checkbox"]:checked + .toggle-label .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* সিলেক্টর গ্রুপ */
.selector-group {
    margin-bottom: 15px;
    animation: slideDown 0.3s ease;
}

.selector-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3a5795;
    margin-bottom: 8px;
}

.selector-group label i {
    color: #667eea;
}

/* সিলেক্ট স্টাইল */
.selector {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Kalpurush', 'Segoe UI', sans-serif;
    min-height: 52px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
}

.selector:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.selector:active {
    border-color: #667eea;
}

/* মোবাইলের জন্য বিশেষ সিলেক্ট স্টাইল */
@media (max-width: 768px) {
    .selector {
        font-size: 16px !important;
        min-height: 48px;
        padding: 14px 16px;
    }
    
    .selector:focus {
        font-size: 16px !important;
    }
}

/* ইনপুট সেকশন */
.input-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #e0e0ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.5s ease;
    position: relative;
}

.input-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px 4px 0 0;
}

.date-input {
    margin-bottom: 20px;
}

.date-input label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3a5795;
    margin-bottom: 8px;
}

.date-input label i {
    color: #667eea;
}

.date-input input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Kalpurush', 'Segoe UI', sans-serif;
    min-height: 48px;
}

.date-input input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* হোমওয়ার্ক ইনপুট */
.homework-input {
    position: relative;
}

.input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.input-header label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3a5795;
}

.input-header label i {
    color: #667eea;
}

.word-count {
    font-size: 0.85rem;
    color: #666;
    background: #f0f0ff;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
}

.homework-input textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 15px;
    transition: all 0.3s;
    line-height: 1.6;
    font-family: 'Kalpurush', 'Segoe UI', sans-serif;
    background: white;
}

.homework-input textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* AI সাজেশন */
.ai-suggestions {
    background: linear-gradient(135deg, #e8f4ff 0%, #f0f7ff 100%);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #cce5ff;
    animation: slideDown 0.3s ease;
}

.suggestion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 10px;
}

.suggestion-header i {
    color: #0066cc;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-item {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0ff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: #333;
}

.suggestion-item:hover {
    background: #f0f5ff;
    border-color: #667eea;
    transform: translateX(5px);
}

/* ভয়েস কন্ট্রোলস */
.voice-controls {
    background: #f9f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e0e0ff;
    position: relative;
    overflow: hidden;
}

.voice-controls:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff3366, #ffcc00);
}

.voice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #3a5795;
    margin-bottom: 15px;
}

.voice-header i {
    color: #ff3366;
    font-size: 1.3rem;
}

.voice-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.voice-btn {
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-height: 60px;
    touch-action: manipulation;
}

.voice-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    z-index: 1;
}

.voice-btn-bn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.voice-btn-en {
    background: linear-gradient(135deg, #ff3366 0%, #ff9966 100%);
    color: white;
}

.voice-btn-ai {
    background: linear-gradient(135deg, #00cc66 0%, #00cc99 100%);
    color: white;
}

.voice-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.voice-btn.active {
    animation: voiceActive 1.5s infinite alternate;
    background: linear-gradient(135deg, #ff3366 0%, #ff9966 100%) !important;
}

@keyframes voiceActive {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
    }
    100% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(255, 51, 102, 0.8), 0 0 30px rgba(255, 51, 102, 0.4);
    }
}

.voice-icon {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
}

.pulse-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: voicePulse 1.5s infinite;
    z-index: 1;
}

@keyframes voicePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.voice-text {
    flex: 1;
    text-align: left;
    z-index: 2;
}

.voice-text .language {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.voice-text .status {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

.voice-status {
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.voice-status.listening {
    background: #e8f5e9;
    border-left-color: #00cc66;
    color: #006633;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.status-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-text {
    flex: 1;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    transition: all 0.3s;
}

.status-dot.active {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

/* ভয়েস বাটন ডিজেবল স্টেট */
.voice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    animation: none;
}

.voice-btn:disabled .voice-icon {
    color: #999;
}

/* Android Chrome ভয়েস ফিক্স */
.android-device .voice-btn {
    position: relative;
    overflow: hidden;
}

.android-device .voice-btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s;
}

.android-device .voice-btn:active:after {
    opacity: 1;
}

/* ভয়েস রেকর্ডিং ইনডিকেটর */
.voice-recording-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff3366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    display: none;
    z-index: 999;
    animation: slideIn 0.3s;
}

.voice-recording-indicator.show {
    display: flex;
    align-items: center;
    gap: 5px;
}

.voice-recording-indicator .recording-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: recordingPulse 1s infinite;
}

@keyframes recordingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ফর্ম অ্যাকশন */
.form-actions {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-height: 52px;
    touch-action: manipulation;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-submit {
    background: linear-gradient(135deg, #00cc66 0%, #00cc99 100%);
    color: white;
}

.btn-reset {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-small {
    padding: 12px 20px;
    font-size: 14px;
    max-width: 250px;
    margin: 15px auto 0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* প্রিভিউ সেকশন */
.preview-section {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    border: 2px solid #e0e0ff;
    animation: fadeIn 0.5s ease;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.preview-header h4 {
    font-size: 1.1rem;
    color: #3a5795;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.preview-header h4 i {
    color: #667eea;
}

.refresh-btn {
    background: white;
    border: 2px solid #e0e0ff;
    color: #667eea;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: #667eea;
    color: white;
    transform: rotate(180deg);
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.preview-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.preview-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.preview-date {
    font-size: 0.85rem;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.preview-content {
    flex: 1;
    margin: 0 15px;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.preview-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.preview-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.preview-action-btn.edit {
    color: #667eea;
    border-color: #667eea;
}

.preview-action-btn.edit:hover {
    background: #667eea;
    color: white;
}

.preview-action-btn.delete {
    color: #ff4444;
    border-color: #ff4444;
}

.preview-action-btn.delete:hover {
    background: #ff4444;
    color: white;
}

/* নো ডেটা মেসেজ */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    animation: fadeIn 0.5s ease;
}

.no-data-icon {
    font-size: 60px;
    color: #bdc3c7;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-data p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
}

/* AI প্রসেসিং মডাল */
.ai-modal .modal-content {
    max-width: 400px;
}

.ai-processing {
    text-align: center;
    padding: 20px 0;
}

.ai-processing .spinner {
    margin-bottom: 20px;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-processing h4 {
    font-size: 1.1rem;
    color: #3a5795;
    margin-bottom: 20px;
    font-weight: 600;
}

.progress-container {
    margin: 20px 0;
}

.ai-progress {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.ai-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    font-weight: 600;
}

/* ফুটার */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1c2833 100%);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 25px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-content p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-content i {
    color: #ffcc00;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat i {
    color: #00cc66;
}

/* পাসওয়ার্ড মডাল স্টাইল */
.password-container {
    text-align: center;
    padding: 10px;
}

.password-icon {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.password-input-group {
    position: relative;
    margin-bottom: 15px;
}

.password-input-group input {
    padding-right: 50px;
    width: 100%;
    font-size: 16px;
    min-height: 48px;
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #667eea;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    min-height: auto;
}

.toggle-password-btn:hover {
    color: #764ba2;
}

/* টোস্ট নোটিফিকেশন */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #00cc66 0%, #00cc99 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 204, 102, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 90%;
    min-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.error {
    background: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
}

.toast.warning {
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
}

.toast.info {
    background: linear-gradient(135deg, #3366ff 0%, #6699ff 100%);
}

/* মডাল স্টাইল */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #3a5795, #1c3b6a);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header span {
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.modal-header span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.homework-details p {
    margin-bottom: 15px;
    font-size: 16px;
}

.homework-details strong {
    color: #3a5795;
    min-width: 80px;
    display: inline-block;
}

/* অ্যানিমেশন */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* মোবাইল রেস্পন্সিভ */
@media (max-width: 480px) {
    .container {
        border-radius: 10px;
    }
    
    header {
        padding: 12px 15px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .ai-status {
        position: static;
        margin-top: 10px;
    }
    
    .selected-content {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .selected-content h3 {
        font-size: 1rem;
    }
    
    .change-selection-btn {
        width: 100%;
        justify-content: center;
    }
    
    .voice-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        grid-template-columns: 1fr;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        margin: 0 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .selector {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    .btn {
        min-height: 48px;
        padding: 14px;
    }
    
    .voice-btn {
        min-height: 70px;
        padding: 12px;
    }
}

/* খুব ছোট স্ক্রিন */
@media (max-width: 360px) {
    .main-content {
        padding: 10px;
    }
    
    .input-section {
        padding: 15px;
    }
    
    .btn {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .preview-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .preview-date {
        align-self: flex-start;
    }
    
    .preview-content {
        margin: 0;
        white-space: normal;
        max-height: 40px;
        overflow: hidden;
    }
    
    .preview-actions {
        align-self: flex-end;
    }
}

/* ল্যান্ডস্কেপ মোড */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        padding: 5px;
    }
    
    .homework-input textarea {
        min-height: 80px;
    }
    
    .preview-section {
        max-height: 120px;
        overflow-y: auto;
    }
    
    .voice-controls {
        padding: 10px;
    }
}