﻿body {
    margin: 0;
    background: #f4f5f9;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    color: #2d2d2d;
}

* {
    box-sizing: border-box;
}

a {
    color: #673ab7;
}

.app-container {
    width: 960px;
    max-width: 94%;
    margin: 30px auto;
}

.app-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.app-logo {
    font-size: 26px;
    font-weight: bold;
    color: #673ab7;
    margin-bottom: 8px;
}

.app-subtitle {
    color: #666;
    line-height: 1.8;
}

.app-title {
    margin-top: 0;
    color: #333;
}

.field {
    margin-bottom: 15px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.textbox {
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: Tahoma;
    font-size: 14px;
    background: #fff;
}

textarea.textbox {
    min-height: 90px;
    resize: vertical;
}

.btn {
    display: inline-block;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: #673ab7;
    color: #fff;
    text-decoration: none;
    font-family: Tahoma;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

.btn-secondary {
    background: #555;
}

.btn-danger {
    background: #c62828;
}

.btn-block {
    width: 100%;
    display: block;
}

.grid-2 {
    overflow: hidden;
}

.grid-2 .field,
.grid-2 .menu-item {
    width: 48%;
    float: right;
    margin-left: 2%;
}

.menu-item {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.menu-title {
    color: #673ab7;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 7px;
}

.status {
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-inactive {
    background: #ffebee;
    color: #c62828;
}

.message {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.badge {
    background: #d32f2f;
    color: #fff;
    display: inline-block;
    min-width: 22px;
    padding: 3px 7px;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
}

.clear {
    clear: both;
}

@media screen and (max-width: 700px) {

    body {
        font-size: 14px;
    }

    .app-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 12px;
    }

    .app-card {
        padding: 18px 15px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .app-logo {
        font-size: 23px;
    }

    .grid-2 .field,
    .grid-2 .menu-item {
        width: 100%;
        float: none;
        margin-left: 0;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }

    .textbox {
        font-size: 16px;
        min-height: 46px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 17px;
    }

}

@media screen and (max-width: 380px) {

    .app-container {
        padding: 8px;
    }

    .app-card {
        padding: 15px 12px;
    }

}