/*
 Theme Name:   Divi RMS Child
 Theme URI:    https://rentmanager.co.in
 Description:  Child theme for Rental Management System built on Divi
 Author:       Your Name
 Author URI:   https://rentmanager.co.in
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  divi-rms-child
*/

/* RMS Forms */
.rms-form-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.rms-form-wrapper h3 {
    margin-bottom: 25px;
    text-align: center;
}

.rms-form p {
    margin-bottom: 18px;
}

.rms-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.rms-form input[type="text"],
.rms-form input[type="email"],
.rms-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.rms-form button {
    width: 100%;
    padding: 14px;
    background: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.rms-form button:hover {
    background: #2c5282;
}

.rms-success {
    background: #c6f6d5;
    color: #22543d;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.rms-error {
    background: #fed7d7;
    color: #742a2a;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}
/* ======================
   DASHBOARD - FIXED
   ====================== */

.rms-dashboard {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
}

.rms-dashboard-header h2 {
    font-size: 28px !important;
    margin-bottom: 6px !important;
    color: #1a202c !important;
}

.rms-business-name {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
}

.rms-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

.rms-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 22px 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    border-left: 5px solid #cbd5e0 !important;
}

.rms-card-customers { border-left-color: #4299e1 !important; }
.rms-card-products  { border-left-color: #48bb78 !important; }
.rms-card-rentals   { border-left-color: #ed8936 !important; }
.rms-card-invoices  { border-left-color: #9f7aea !important; }

.rms-card-icon {
    font-size: 32px !important;
    line-height: 1 !important;
}

.rms-card-content h3 {
    font-size: 28px !important;
    margin: 0 0 2px 0 !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
}

.rms-card-content p {
    margin: 0 !important;
    font-size: 14px !important;
    color: #718096 !important;
}

.rms-quick-links {
    margin-top: 10px;
}

.rms-quick-links h3 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
}

.rms-links-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
}

.rms-quick-btn {
    display: block !important;
    text-align: center !important;
    background: #2b6cb0 !important;
    color: #ffffff !important;
    padding: 13px 10px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.rms-quick-btn:hover {
    background: #2c5282 !important;
    color: #fff !important;
}

/* Mobile */
@media (max-width: 900px) {
    .rms-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .rms-links-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 500px) {
    .rms-cards-grid,
    .rms-links-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ======================
   CUSTOMERS MODULE
   ====================== */

.rms-customers-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.rms-section-header h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

.rms-form-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.rms-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.rms-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.rms-form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
}

.rms-form-actions {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

.rms-btn-primary {
    background: #2b6cb0;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.rms-btn-primary:hover {
    background: #2c5282;
}

.rms-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.rms-search-box {
    margin-bottom: 20px;
}

.rms-search-box input {
    padding: 10px 15px;
    width: 300px;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.rms-search-box button {
    padding: 10px 18px;
    background: #4a5568;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.rms-table-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.rms-table {
    width: 100%;
    border-collapse: collapse;
}

.rms-table th {
    background: #f7fafc;
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

.rms-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

.rms-actions a {
    margin-right: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.rms-btn-edit {
    color: #2b6cb0;
}

.rms-btn-delete {
    color: #e53e3e;
}

@media (max-width: 700px) {
    .rms-form-row {
        grid-template-columns: 1fr;
    }
}
/* Your custom CSS will go below this line later */
