/* Custom styles for login/registration system */

/* Alert messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

/* Form controls */
.form-control {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.form-control[disabled] {
    background-color: #eee;
    opacity: 1;
    cursor: not-allowed;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #ddd;
    margin-bottom: 0;
}

.nav-tabs > li {
    float: left;
    margin-bottom: -2px;
}

.nav-tabs > li > a {
    margin-right: 2px;
    line-height: 1.42857143;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.nav-tabs > li > a:hover {
    border-color: #eee #eee #ddd;
    background-color: #f5f5f5;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #555;
    cursor: default;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
}

.tab-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Table styles */
.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
}

.table > thead > tr > th,
.table > tbody > tr > td {
    padding: 12px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

.table > thead > tr > th {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.table-bordered {
    border: 1px solid #ddd;
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
    border: 1px solid #ddd;
}

.table-responsive {
    min-height: .01%;
    overflow-x: auto;
}

/* Labels */
.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.label-success {
    background-color: #5cb85c;
}

.label-info {
    background-color: #5bc0de;
}

.label-danger {
    background-color: #d9534f;
}

/* Button small */
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* Utility classes */
.margin-top-20 {
    margin-top: 20px;
}

.margin-top-30 {
    margin-top: 30px;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

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

/* User dropdown improvements */
.user-acc .dropdown-menu li h6 {
    padding: 10px 20px;
    margin: 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    color: #333;
}

.user-acc .dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background-color 0.3s;
}

.user-acc .dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .nav-tabs > li {
        float: none;
    }
    
    .nav-tabs > li > a {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .table-responsive {
        border: 1px solid #ddd;
    }
}