
.dgai-card {
    max-width: 920px;
    margin: 20px auto;
    padding: 22px;
    background: #fff;
    border: 1px solid #d9e2dc;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.dgai-card h2, .dgai-card h3 { margin-top: 0.6em; }
.dgai-muted { color: #667; }
.dgai-login input, .dgai-upload-form input, .dgai-upload-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px;
    border: 1px solid #ccd6cc;
    border-radius: 10px;
}
.dgai-upload-form label, .dgai-login label { font-weight: 700; display: block; }
.dgai-upload-form button, .dgai-login button, .dgai-button {
    display: inline-block;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: #196b3b;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
.dgai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}
.dgai-suggestions strong { width: 100%; }
.dgai-suggestions span {
    background: #eef8f1;
    border: 1px solid #cde8d6;
    color: #176135;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}
.dgai-alert { padding: 10px; border-radius: 10px; margin: 12px 0; }
.dgai-alert-red { background: #ffe9e9; border: 1px solid #f2aaaa; color: #9b1111; }
.dgai-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 700;
    background: #e8eef7;
    color: #27415f;
}
.dgai-status-normal { background: #e6f6ea; color: #12652b; }
.dgai-status-warning { background: #fff3cd; color: #7a5200; }
.dgai-status-action { background: #ffe8d6; color: #8a3a00; }
.dgai-status-urgent { background: #ffe0e0; color: #9b1111; }
.dgai-status-pending { background: #e8eef7; color: #27415f; }
.dgai-instructions {
    background: #f7faf8;
    border-left: 4px solid #196b3b;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.dgai-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.dgai-media-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #ddd;
}
.dgai-video-link {
    display:block;
    padding: 20px;
    background:#f3f3f3;
    border-radius:10px;
}
.dgai-pre {
    max-height: 420px;
    overflow: auto;
    background: #111;
    color: #e9ffe9;
    padding: 14px;
    border-radius: 10px;
}
@media (max-width: 600px) {
    .dgai-card { margin: 10px; padding: 16px; }
}


.dgai-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.dgai-upload-section {
    background: #fbfdfb;
    border: 1px solid #dce9df;
    border-radius: 12px;
    padding: 14px;
}
.dgai-upload-section label {
    font-size: 15px;
    margin-bottom: 4px;
}
.dgai-upload-section input[type="file"] {
    background: #fff;
}
.dgai-media-item {
    border: 1px solid #dde7df;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
}
.dgai-media-label {
    font-weight: 700;
    color: #176135;
    margin-bottom: 6px;
    font-size: 13px;
}


.dgai-manual-readings {
    margin: 20px 0;
    padding: 16px;
    background: #f8fcf9;
    border: 1px solid #dce9df;
    border-radius: 12px;
}
.dgai-manual-readings summary {
    font-weight: 800;
    cursor: pointer;
    color: #113;
}
.dgai-reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.dgai-reading-field {
    background: #fff;
    border: 1px solid #e1e8e2;
    border-radius: 10px;
    padding: 12px;
}
.dgai-reading-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dgai-reading-input-wrap input {
    flex: 1;
    margin: 6px 0 0 !important;
}
.dgai-reading-input-wrap span {
    white-space: nowrap;
    color: #176135;
    font-weight: 700;
}


.dgai-language-box {
    margin: 18px 0;
    padding: 16px;
    background: #f8fcf9;
    border: 1px solid #dce9df;
    border-radius: 12px;
}
.dgai-language-box label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}
.dgai-language-box select {
    width: 100%;
    max-width: 420px;
    padding: 12px;
    border: 1px solid #ccd6cc;
    border-radius: 10px;
    background: #fff;
}


.dgai-language-top {
    border: 2px solid #b9dec5;
    background: #f3fbf5;
}
#dgai-app[dir="rtl"] {
    text-align: right;
}
#dgai-app[dir="rtl"] .dgai-reading-input-wrap {
    flex-direction: row-reverse;
}
#dgai-app[dir="rtl"] .dgai-suggestions {
    direction: rtl;
}
