/* ============================================
   Fix My Bag - Frontend Styles
   ============================================ */

/* === Vendor Imports === */
@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css');
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700');

:root {
    --primary-color: #d84621;
    --primary-hover: #c53f1e;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --border-color: #ddd;
    --text-color: #4a4a4a;
    --white: #fff;
    --header-bg: #1e1e1e;
    --icon-color: #ee4216;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: var(--dark-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    margin-top: 0;
    font-weight: 300;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* === Header === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    background: var(--header-bg);
    z-index: 999;
}

header .container {
    height: 100%;
}

header .navbar,
header .navbar-default {
    position: relative;
    background: none;
    border: 0;
    padding: 30px 0 0;
    margin: 0;
    color: var(--white);
}

.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a:hover {
    color: var(--white);
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > .open > a:hover {
    background: transparent;
    color: var(--white);
}

header .navbar-header {
    flex-shrink: 0;
}

header .logo {
    display: inline-block;
    width: 280px;
    height: 40px;
    background: url('/front/img/logo-white.png') center center no-repeat;
    background-size: 280px 40px;
    text-indent: -9999px;
    transition: all 0.2s ease-in-out;
}

header .nav {
    margin-left: auto;
}

header ul.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    float: right !important;
}

header ul.navbar-nav:after {
    content: "";
    display: table;
    clear: both;
}

header .navbar-nav > li {
    float: left !important;
    position: relative;
    display: block;
    white-space: nowrap;
}

header .navbar-nav > li > * {
    display: inline-block !important;
    vertical-align: middle;
}

header .navbar-nav li span.helper {
    margin-right: -15px;
    color: #999;
    font-size: 14px;
    padding: 8px 20px;
    display: inline-block !important;
}

header .navbar-nav li a {
    display: inline-block !important;
    padding: 8px 20px;
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border: solid 2px transparent;
    line-height: normal;
}

header .navbar-nav li a:hover,
header .navbar-nav li a:focus {
    color: #fff !important;
    text-decoration: none;
    background: transparent !important;
}

header .navbar-nav li a i.fa {
    color: #ee4216;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

header .navbar-nav li a span {
    display: inline-block;
    vertical-align: middle;
}

header .navbar-nav li a span.underline {
    display: inline-block;
    border-bottom: solid 2px #4c4c4c;
    transition: all 0.2s ease-in-out;
}

header .navbar-nav li a:hover span.underline,
header .navbar-nav li a:focus span.underline {
    border-color: #a1a1a1;
}

header .navbar-nav li a.btn-border {
    border: solid 2px #4c4c4c;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

header .navbar-nav li a.btn-border:hover,
header .navbar-nav li a.btn-border:focus {
    border-color: #a1a1a1;
}

/* Dropdown Menu */
header .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 180px;
    display: none;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

header .dropdown:hover .dropdown-menu {
    display: block;
}

header .dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--dark-color);
}

header .dropdown-menu li a:hover {
    background-color: var(--light-color);
}

header .dropdown-menu li a i {
    margin-right: 10px;
    width: 16px;
}

/* === Head Section (Hero) === */
section.head,
section.subhead {
    margin: 100px 0 0;
}

section.head .content {
    background: url('/front/img/img-head.jpg') bottom right no-repeat;
    background-size: 420px 180px;
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

@media (max-width: 992px) {
    section.head .content {
        background: none;
    }
}

section.head h1,
section.subhead h1 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 100;
    text-transform: uppercase;
    margin: 0;
    color: var(--dark-color);
}

section.head p,
section.subhead h2 {
    font-size: 20px;
    line-height: 26px;
    font-weight: 100;
    margin: 0;
}

section.head p,
section.subhead p {
    margin: 0;
}

section.head ul {
    padding-left: 20px;
    margin: 15px 0;
}

section.head ul li {
    font-weight: bold;
    margin-bottom: 5px;
}

section.head strong, section.head b {
    font-style: italic;
}

section.subhead {
    margin: 100px 0 0;
}

section.subhead .content {
    background: var(--white);
    background-repeat: no-repeat;
    background-position: -20px center;
    background-size: 120px 120px;
    min-height: 140px;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0 20px 110px;
}

@media (max-width: 768px) {
    section.subhead .content {
        background-image: none !important;
        padding: 20px 0;
    }
}

/* === Content Section === */
section.content {
    padding: 40px 0;
}

/* === Flip Cards (Homepage) === */
.btn-card {
    position: relative;
    display: inline-block;
    width: 100%;
    min-height: 240px;
    margin-bottom: 30px;
    text-decoration: none;
}

.btn-card:hover {
    text-decoration: none;
}

.flip-container,
.flipper {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.flip-container {
    -webkit-perspective: 1000;
    perspective: 1000;
}

.flip-container:hover .back {
    -webkit-transform: rotateY(0);
    transform: rotateY(0);
}

.flip-container:hover .front {
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}

.flip-container,
.flipper,
.front,
.back {
    width: 260px;
    height: 260px;
    margin: auto;
}

.flipper {
    transition: all .4s ease-in-out 0s;
    -moz-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    position: relative;
}

.back,
.front {
    position: absolute;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-transition: all .4s ease-in-out;
    -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out 0s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    top: 0;
    left: 0;
    border-radius: 6px;
}

.front {
    z-index: 2;
    -webkit-transform: rotateY(0);
    transform: rotateY(0);
    border: solid 1px #ddd;
    background: var(--white);
}

.front .img {
    width: 120px;
    height: 120px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 120px 120px;
    margin: 20px auto;
}

.front .title {
    margin: 20px auto;
    line-height: 20px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 10px;
    color: var(--dark-color);
}

.front .title i.fa {
    color: var(--icon-color);
    margin-left: 5px;
}

.back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    background: #ee4216;
    padding: 20px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.back p {
    padding: 0;
    text-align: center;
    color: #fff;
    margin: 0;
}

.back .arrow {
    position: absolute;
    width: 100%;
    bottom: 20px;
    text-align: center;
    font-size: 24px;
    color: var(--white);
    opacity: 0.5;
}

/* === FAQ Box === */
.faq-box {
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.faq-box h1 {
    margin-bottom: 15px;
}

.faq-box a {
    font-size: 20px;
    font-weight: 300;
    border-bottom: 1px solid var(--primary-color);
    text-decoration: none;
}

.faq-box a:hover {
    text-decoration: none;
}

/* === Forms === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(216, 70, 33, 0.1);
}

.input-group {
    display: flex;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 4px 4px 0;
    color: #999;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-default,
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-default:hover,
.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--white);
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* === Alerts === */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* === Footer === */
footer {
    background: #efefef;
    color: #303030;
    padding: 25px 0;
    font-size: 13px;
}

footer .logo {
    display: inline-block;
    width: 200px;
    height: 30px;
    background: url('/front/img/logo.png') center center no-repeat;
    background-size: 200px 30px;
    margin: 40px 0 0;
    transition: all 0.2s ease-in-out;
}

@media (max-width: 768px) {
    footer .logo {
        display: block;
        margin: 20px auto;
    }
}

footer .title {
    margin: 0;
    color: #1a1a1a;
    font-weight: bold;
    text-transform: uppercase;
}

footer p {
    font-size: 13px;
    line-height: 1.8;
}

footer hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

footer .footer-1 {
    color: #696969;
    font-size: 13px;
}

footer .footer-2 {
    text-align: right;
}

footer .footer-2 a {
    display: inline-block;
    font-weight: bold;
    color: #696969;
    margin-left: 15px;
    font-size: 13px;
}

footer .footer-2 a:hover {
    opacity: 0.75;
}

footer a {
    display: inline-block;
    font-weight: bold;
    color: #303030;
}

footer a:hover {
    opacity: 0.75;
}

@media (max-width: 768px) {
    footer .footer-1,
    footer .footer-2 {
        text-align: center;
    }
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background: var(--white);
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 25px 25px 0;
    position: relative;
}

.modal-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.modal-header .close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.modal-header .close:hover {
    color: var(--dark-color);
}

.modal-body {
    padding: 25px;
}

/* === Utilities === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-sm-2, .col-sm-3, .col-sm-4, .col-sm-6, .col-sm-12,
.col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-12,
.col-lg-3, .col-lg-4, .col-lg-8 {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 576px) {
    .col-sm-2 { width: 16.666667%; }
    .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.333333%; }
    .col-sm-6 { width: 50%; }
    .col-sm-12 { width: 100%; }
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333333%; }
    .col-md-5 { width: 41.666667%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.333333%; }
    .col-md-12 { width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333333%; }
    .col-lg-8 { width: 66.666667%; }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.float-end { float: right; }
.float-start { float: left; }

.hidden-xs { display: block; }
.visible-xs-inline-block { display: none; }

/* Mobile header */
@media (max-width: 768px) {
    header .navbar .nav {
        position: absolute;
        top: 20px;
        right: 20px;
        display: inline-block;
    }

    header .navbar li {
        display: inline-block;
    }

    header .navbar li a {
        display: inline-block;
    }

    header .logo {
        width: 120px;
        height: 18px;
        background-size: 120px 18px;
        margin: 11px 0 10px 5px;
    }

    header .navbar-nav li a i.fa {
        margin-left: 0px;
    }
}

@media (max-width: 575px) {
    .hidden-xs { display: none; }
    .visible-xs-inline-block { display: inline-block; }

    section.head h1 {
        font-size: 24px;
        line-height: 32px;
    }

    footer .footer-2 {
        text-align: left;
        margin-top: 15px;
    }

    footer .footer-2 a {
        margin-left: 0;
        margin-right: 15px;
    }
}

.space-top-10 { margin-top: 10px; }
.space-top-20 { margin-top: 20px; }
.space-bottom-10 { margin-bottom: 10px; }
.space-bottom-20 { margin-bottom: 20px; }

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

/* === Tables === */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

.table-striped tbody tr:nth-child(odd) {
    background: #fafafa;
}

/* === Badges === */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.badge-info {
    background: #dbeafe;
    color: #2563eb;
}

/* === Steps/Breadcrumb === */
.steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
}

.steps li {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 14px;
}

.steps li.active {
    color: var(--primary-color);
    font-weight: 500;
}

.steps li.completed {
    color: #16a34a;
}

.steps li .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-color);
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: 600;
}

.steps li.active .step-number {
    background: var(--primary-color);
    color: var(--white);
}

.steps li.completed .step-number {
    background: #16a34a;
    color: var(--white);
}

.steps li::after {
    content: '';
    width: 50px;
    height: 2px;
    background: var(--border-color);
    margin: 0 20px;
}

.steps li:last-child::after {
    display: none;
}

/* === Cards === */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-color);
    border-radius: 8px 8px 0 0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
    border-radius: 0 0 8px 8px;
}

/* === Tracking Status === */
.status-timeline {
    position: relative;
    padding-left: 30px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.status-item {
    position: relative;
    padding-bottom: 25px;
}

.status-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--white);
}

.status-item.active::before {
    background: var(--primary-color);
}

.status-item.completed::before {
    background: #16a34a;
}

.status-item .status-date {
    font-size: 12px;
    color: #999;
}

.status-item .status-text {
    font-weight: 500;
    color: var(--dark-color);
}
