/* الأنماط الأساسية */
.android-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.android-app {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* الهيدر */
.android-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

.app-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.app-title i {
    margin-left: 10px;
}

.meter-number-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    margin-bottom: 10px;
}

/* البطاقات */
.android-card {
    background: white;
    border-radius: 12px;
    margin: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    color: #2c5aa0;
    flex: 1;
}

.card-content {
    padding: 20px;
}

/* الأزرار */
.android-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.android-btn.primary {
    background: #007bff;
    color: white;
}

.android-btn.secondary {
    background: #6c757d;
    color: white;
}

.android-btn.success {
    background: #28a745;
    color: white;
}

.android-btn.danger {
    background: #dc3545;
    color: white;
}

.android-btn.warning {
    background: #ffc107;
    color: #212529;
}

.android-btn.small {
    padding: 8px 15px;
    font-size: 12px;
}

.android-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.android-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* شبكة المعلومات */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.info-label {
    font-weight: 600;
    color: #495057;
}

.info-value {
    color: #2c5aa0;
    font-weight: 500;
}

/* عرض القراءة */
.reading-display {
    text-align: center;
    padding: 20px;
}

.reading-value {
    font-size: 48px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.reading-unit {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 15px;
}

/* نموذج الإدخال */
.manual-input-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
}

.help-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

/* الفوتر */
.android-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    margin-top: 30px;
}

/* رسائل النظام */
.message {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.message.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

.message.warning {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ff9800;
}

.message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #2196f3;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .android-card {
        margin: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .reading-value {
        font-size: 36px;
    }
}