/*
Theme Name: Pak Legal  Style CSS
Author: Pak Legal Desk
Description: Professional legal services platform with AI document drafting.
Version: 1.0
License: GPLv2 or later
Text Domain: fowlstyle
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fafafa;
    color: #262626;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 49px;
}
a {
    color: #0095f6;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.hidden {
    display: none !important;
}

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.fowlstyle-main-shell {
    display: flex;
    max-width: 935px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 32px;
}
.fowlstyle-feed-column {
    flex: 1;
    max-width: 600px;
}
.fowlstyle-sidebar-column {
    width: 293px;
    flex-shrink: 0;
}

/* ============================================================
   LANDING PAGE (Guest)
   ============================================================ */
.legal-landing {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 54px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 50px;
    background: #fafafa;
    flex-wrap: wrap;
}
.landing-left {
    flex: 1;
    max-width: 500px;
    min-width: 280px;
}
.landing-left .brand {
    font-family: 'Grand Hotel', cursive;
    font-size: 48px;
    color: #262626;
    line-height: 1.2;
    margin-bottom: 8px;
}
.landing-left .brand span {
    color: #0095f6;
}
.landing-left .tagline {
    font-size: 20px;
    font-weight: 300;
    color: #262626;
    margin: 0 0 12px;
}
.landing-left .desc {
    font-size: 16px;
    color: #5a5a5a;
    line-height: 1.6;
    margin-bottom: 24px;
}
.landing-left .features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-bottom: 28px;
}
.landing-left .features li {
    list-style: none;
    font-size: 14px;
    color: #262626;
    display: flex;
    align-items: center;
    gap: 8px;
}
.landing-left .features li i {
    color: #0095f6;
    width: 18px;
}
.landing-left .cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.landing-left .cta-buttons a {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.landing-left .cta-buttons .primary {
    background: #0095f6;
    color: #fff;
}
.landing-left .cta-buttons .primary:hover {
    background: #0077c2;
}
.landing-left .cta-buttons .secondary {
    background: #fff;
    border: 1px solid #dbdbdb;
    color: #262626;
}
.landing-left .cta-buttons .secondary:hover {
    background: #fafafa;
}

.landing-right {
    width: 380px;
    flex-shrink: 0;
    min-width: 280px;
}
.landing-card {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 30px 32px 24px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.landing-card .card-title {
    font-size: 22px;
    font-weight: 300;
    text-align: center;
    margin: 0 0 20px;
    color: #262626;
}
.landing-error {
    background: #fce4e6;
    color: #ed4956;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
}
.landing-login-form p {
    margin-bottom: 8px;
}
.landing-login-form label {
    display: none;
}
.landing-login-form input[type="text"],
.landing-login-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    background: #fafafa;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.landing-login-form input:focus {
    border-color: #a8a8a8;
}
.landing-login-form .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    justify-content: center;
}
.landing-login-form .forgetmenot label {
    display: inline;
    font-size: 14px;
    color: #262626;
}
.landing-login-form .submit {
    margin: 0;
}
.landing-login-form .submit input {
    width: 100%;
    padding: 10px;
    background: #0095f6;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.landing-login-form .submit input:hover {
    background: #0077c2;
}
.landing-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: #8e8e8e;
    font-size: 13px;
}
.landing-divider::before,
.landing-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dbdbdb;
}
.landing-divider span {
    margin: 0 16px;
    flex-shrink: 0;
}
.landing-signup {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    font-size: 14px;
}
.landing-signup a {
    color: #0095f6;
    font-weight: 600;
    text-decoration: none;
}
.landing-signup a:hover {
    text-decoration: underline;
}
.landing-forgot {
    text-align: center;
    margin-top: 10px;
}
.landing-forgot a {
    color: #8e8e8e;
    font-size: 13px;
    text-decoration: none;
}
.landing-forgot a:hover {
    text-decoration: underline;
    color: #262626;
}

/* ============================================================
   DASHBOARD (Logged-in)
   ============================================================ */
.legal-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.dashboard-welcome {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.dashboard-welcome .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0095f6;
}
.dashboard-welcome .greeting h1 {
    font-size: 22px;
    font-weight: 300;
    margin: 0 0 4px;
    color: #262626;
}
.dashboard-welcome .greeting p {
    margin: 0;
    color: #8e8e8e;
    font-size: 14px;
}
.dashboard-welcome .badge-role {
    background: #0095f6;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
    margin-left: 8px;
}
.dashboard-stats {
    display: flex;
    gap: 32px;
    margin-left: auto;
    flex-wrap: wrap;
}
.dashboard-stats .stat-item {
    text-align: center;
}
.dashboard-stats .stat-item .num {
    font-size: 22px;
    font-weight: 600;
    color: #262626;
    display: block;
}
.dashboard-stats .stat-item .label {
    font-size: 12px;
    color: #8e8e8e;
}
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.quick-actions .action-btn {
    background: #0095f6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.quick-actions .action-btn:hover {
    background: #0077c2;
}
.quick-actions .action-btn.secondary {
    background: #fff;
    border: 1px solid #dbdbdb;
    color: #262626;
}
.quick-actions .action-btn.secondary:hover {
    background: #fafafa;
}
.services-section h2 {
    font-size: 24px;
    font-weight: 300;
    color: #262626;
    margin: 0 0 8px;
}
.services-section .subtitle {
    color: #8e8e8e;
    font-size: 15px;
    margin: 0 0 24px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.service-card {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: 24px 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #262626;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #0095f6;
}
.service-card .icon-wrap {
    font-size: 28px;
    color: #0095f6;
    margin-bottom: 12px;
}
.service-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #262626;
}
.service-card p {
    font-size: 14px;
    color: #8e8e8e;
    margin: 0 0 16px;
    line-height: 1.5;
    flex: 1;
}
.service-card .card-footer {
    font-size: 13px;
    font-weight: 600;
    color: #0095f6;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.service-card .card-footer i {
    font-size: 14px;
    transition: transform 0.2s;
}
.service-card:hover .card-footer i {
    transform: translateX(4px);
}

/* ============================================================
   REGISTER PAGE
   ============================================================ */
.register-wrapper {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 30px 20px;
}
.register-wrapper h2 {
    font-size: 22px;
    font-weight: 300;
    text-align: center;
    margin: 0 0 25px;
    color: #262626;
}
.register-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
    color: #262626;
}
.register-wrapper input[type="text"],
.register-wrapper input[type="email"],
.register-wrapper input[type="password"],
.register-wrapper select,
.register-wrapper textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
    box-sizing: border-box;
}
.register-wrapper .file-input {
    margin-bottom: 16px;
}
.register-wrapper .submit-btn {
    background: #0095f6;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}
.register-wrapper .error-message {
    color: #ed4956;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}
.lawyer-fields {
    display: none;
    border-top: 1px solid #efefef;
    padding-top: 16px;
    margin-top: 8px;
}
.role-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}
.role-selector label {
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   MANAGE SERVICES
   ============================================================ */
.manage-services-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.manage-services-wrapper h1 {
    font-size: 28px;
    font-weight: 300;
    color: #262626;
    margin: 0 0 8px;
}
.manage-services-wrapper .subtitle {
    color: #8e8e8e;
    margin-bottom: 24px;
}
.manage-services-wrapper .btn-add {
    display: inline-block;
    background: #0095f6;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
}
.manage-services-wrapper .btn-add:hover {
    background: #0077c2;
}
.service-list {
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    overflow: hidden;
}
.service-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #efefef;
}
.service-item:last-child {
    border-bottom: none;
}
.service-item .info {
    flex: 1;
}
.service-item .info h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}
.service-item .info .meta {
    font-size: 13px;
    color: #8e8e8e;
}
.service-item .actions a {
    margin-left: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.service-item .actions .edit {
    color: #0095f6;
}
.service-item .actions .delete {
    color: #ed4956;
}
.empty-state {
    text-align: center;
    padding: 40px;
    color: #8e8e8e;
}
.notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.notice.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.notice.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================================
   ADD/EDIT SERVICE
   ============================================================ */
.add-edit-service-wrapper {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 30px 24px;
}
.add-edit-service-wrapper h1 {
    font-size: 24px;
    font-weight: 300;
    margin: 0 0 24px;
    color: #262626;
}
.add-edit-service-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
    color: #262626;
}
.add-edit-service-wrapper input[type="text"],
.add-edit-service-wrapper input[type="number"],
.add-edit-service-wrapper textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
    box-sizing: border-box;
}
.add-edit-service-wrapper textarea {
    height: 120px;
    resize: vertical;
}
.add-edit-service-wrapper .file-input {
    margin-bottom: 16px;
}
.add-edit-service-wrapper .submit-btn {
    background: #0095f6;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}
.add-edit-service-wrapper .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.add-edit-service-wrapper .error-message {
    color: #ed4956;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}
.add-edit-service-wrapper .current-image {
    margin-bottom: 12px;
}
.add-edit-service-wrapper .current-image img {
    max-width: 150px;
    border-radius: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 874px) {
    .legal-landing {
        flex-direction: column;
        padding: 20px 16px;
        gap: 30px;
        min-height: auto;
    }
    .landing-left {
        max-width: 100%;
        text-align: center;
    }
    .landing-left .features {
        justify-content: center;
    }
    .landing-left .cta-buttons {
        justify-content: center;
    }
    .landing-right {
        width: 100%;
        max-width: 400px;
    }
    .fowlstyle-main-shell {
        flex-direction: column;
    }
    .fowlstyle-sidebar-column {
        display: none;
    }
}
@media (max-width: 735px) {
    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }
    .dashboard-stats {
        margin-left: 0;
        gap: 16px;
        width: 100%;
        justify-content: space-around;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .register-wrapper {
        margin: 20px 15px;
        padding: 20px 16px;
    }
}
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .landing-left .brand {
        font-size: 36px;
    }
    .landing-left .features {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .landing-card {
        padding: 20px 16px;
    }
}

/* ============================================================
   SOCIAL FEATURES (like buttons, etc.)
   ============================================================ */
/* These are already defined in theme.css – if you use theme.css,
   you can leave them there. This is just a fallback. */