/* 
  SystemMATE Property Listing System
  File: /assets/css/style.css
  Last Update: 12/12/2025 - Base layout + cards + gallery + upload + PM form + header flex + login page

  Developer: Rizal Rosli Putra
  Company  : SystemMATE (https://www.systemmate.com.my)
  Email    : rizal@systemmate.com.my
*/

/* Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #333;
}

/* Containers */
.container {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

.site-main {
    padding: 20px 0 40px 0;
}

/* Header */
.site-header {
    background: #222;
    color: #fff;
    padding: 12px 0;
}

/* Header flex layout */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
}

.header-logo {
    max-height: 48px;
    width: auto;
    display: block;
}

/* Top nav */
.top-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-nav a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.top-nav a:hover {
    color: #fff;
}

.top-nav a.active {
    color: #fff;
    border-bottom-color: #ff6600;
    font-weight: bold;
}

/* Login status bar di bawah header */
.login-status-bar {
    background: #f4f4f4;
    border-top: 1px solid #333;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    padding: 5px 0;
}

.login-status-bar a {
    color: #006aff;
    text-decoration: none;
}

.login-status-bar a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: #222;
    color: #ccc;
    padding: 15px 0;
    margin-top: 40px;
    text-align: center;
}

/* Buttons */
.btn,
.btn-primary,
.btn-small {
    display: inline-block;
    padding: 8px 12px;
    background: #006aff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}
.btn-primary {
    background: #ff6600;
}
.btn:hover,
.btn-primary:hover,
.btn-small:hover {
    opacity: 0.9;
}

/* Alerts */
.alert {
    background: #ffeccc;
    border: 1px solid #ffc966;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}
.table th,
.table td {
    border: 1px solid #ddd;
    text-align: left;
    padding: 8px;
}
.table th {
    background: #f0f0f0;
}

/* Listing grid */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 15px;
    margin-top: 20px;
}
.listing-card {
    background: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: 0.25s ease;
}
.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.15);
}
.listing-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}
.listing-card h3 a {
    color: #222;
    text-decoration: none;
}
.listing-card h3 a:hover {
    text-decoration: underline;
}
.listing-card .meta {
    font-size: 13px;
    color: #777;
}
.listing-card .price {
    margin-top: 6px;
    font-size: 18px;
    color: #ff6600;
    font-weight: bold;
}

/* Legacy login box (jika masih digunakan) */
.login-box {
    width: 350px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.login-box input {
    width: 100%;
    padding: 8px;
    margin: 6px 0 12px 0;
    box-sizing: border-box;
}

/* Forms */
form label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}
form input[type="text"],
form input[type="number"],
form input[type="password"],
form input[type="email"],
form textarea,
form select {
    width: 100%;
    padding: 7px;
    margin-top: 4px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}
form textarea {
    resize: vertical;
}

/* Property detail layout */
.property-info,
.agent-info {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.property-info p,
.agent-info p {
    margin: 6px 0;
    font-size: 14px;
}

/* Gallery */
.property-gallery {
    margin-top: 15px;
    margin-bottom: 15px;
}
.gallery-main {
    background: #000;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}
.gallery-main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}
.gallery-thumbs {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
}
.gallery-thumb.active {
    border-color: #ff6600;
}

/* Upload box + preview */
.upload-box {
    border: 2px dashed #aaa;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
}
.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.preview-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* PM form */
.pm-form {
    margin-top: 10px;
}
.pm-form input[type="text"],
.pm-form textarea {
    width: 100%;
    box-sizing: border-box;
}
.pm-form textarea {
    min-height: 70px;
}

/* Utility */
hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

/* ================================
   LOGIN PAGE STYLING BARU
   ================================ */

.login-body {
    background: linear-gradient(135deg,#f5f7fa,#e4ecf7);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-card {
    width: 380px;
    background: rgba(255,255,255,0.97);
    padding: 28px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    text-align: center;
}

.login-logo img {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 8px;
}

.sys-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.login-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #444;
}

.btn-google {
    width: 100%;
    background: #1a73e8;
    color: #fff;
    padding: 12px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}

.btn-google i {
    font-size: 16px;
}

.btn-google:hover {
    background: #155ec0;
}

.login-separator {
    text-align: center;
    margin: 18px 0;
    font-size: 12px;
    color: #888;
    position: relative;
}

.login-separator::before,
.login-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 37%;
    height: 1px;
    background: #ddd;
}

.login-separator::before {
    left: 0;
}

.login-separator::after {
    right: 0;
}

.link-register {
    font-size: 14px;
    color: #333;
    text-decoration: underline;
}

.link-register:hover {
    color: #000;
}
