/* ManageUser - Adapted to Solid State color scheme */

@import url("https://fonts.googleapis.com/css?family=Raleway:200,700|Source+Sans+Pro:300,600,300italic,600italic");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    background-color: #2e3141;
    background-image: linear-gradient(to top, rgba(46, 49, 65, 0.2), rgba(46, 49, 65, 0.8)), url("../images/bg.jpg");
    background-size: auto, cover;
    background-attachment: fixed;
    background-position: center, center;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: #353849;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.container.wide {
    max-width: 800px;
}

h1 {
    margin-bottom: 24px;
    color: #ffffff;
    font-family: Raleway, Helvetica, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 20px;
    color: #ffffff;
    font-family: Raleway, Helvetica, sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-family: Raleway, Helvetica, sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

p {
    margin: 0 0 1em 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-family: Raleway, Helvetica, sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
}

.form-group input {
    width: 100%;
    padding: 0 1em;
    height: 2.75em;
    background: rgba(255, 255, 255, 0.025);
    border: solid 2px rgba(255, 255, 255, 0.125);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 300;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #5b6ba6;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0 2.25em;
    height: 3.75em;
    line-height: 3.75em;
    background-color: #4c5c96;
    color: #ffffff !important;
    border: none;
    border-radius: 5px;
    font-family: Raleway, Helvetica, sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    white-space: nowrap;
}

.btn:hover {
    background-color: #53639e;
}

.btn:active {
    background-color: #45558d;
}

.btn-small {
    padding: 0 1.5em;
    height: 2.75em;
    line-height: 2.75em;
    font-size: 0.7em;
    width: auto;
}

.btn-success {
    background-color: #4a9e6a;
}

.btn-success:hover {
    background-color: #55b078;
}

.btn-danger {
    background-color: #9e4a4a;
}

.btn-danger:hover {
    background-color: #b05555;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    background-color: rgba(190, 60, 60, 0.2);
    color: #ff8a8a;
    border: solid 2px rgba(190, 60, 60, 0.4);
}

.alert-success {
    background-color: rgba(60, 190, 100, 0.2);
    color: #8affa8;
    border: solid 2px rgba(60, 190, 100, 0.4);
}

.alert-info {
    background-color: rgba(76, 92, 150, 0.3);
    color: #a8b8ff;
    border: solid 2px rgba(76, 92, 150, 0.5);
}

/* Links */
.link {
    margin-top: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.link a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: dotted 1px rgba(255, 255, 255, 0.35);
    transition: border-bottom-color 0.2s;
}

.link a:hover {
    border-bottom-color: transparent;
}

/* Radio buttons for registration */
.radio-group {
    margin-top: 8px;
}

.radio-label {
    display: block;
    padding: 12px 16px;
    border: solid 2px rgba(255, 255, 255, 0.125);
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.radio-label:hover {
    border-color: #5b6ba6;
    background-color: rgba(255, 255, 255, 0.025);
}

.radio-label input[type="radio"] {
    width: auto;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.radio-label span {
    font-weight: 600;
    vertical-align: middle;
    color: #ffffff;
}

.radio-label small {
    display: block;
    margin-top: 4px;
    margin-left: 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Dashboard specific */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: solid 2px rgba(255, 255, 255, 0.125);
}

.header h1 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.header nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.content {
    margin-bottom: 30px;
}

.card {
    background: #3d4051;
    border: solid 2px rgba(255, 255, 255, 0.125);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 16px;
}

.card ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style: disc;
}

.card li {
    margin-bottom: 6px;
    padding-left: 0.5em;
}

.card a {
    color: #ffffff;
    border-bottom: dotted 1px rgba(255, 255, 255, 0.35);
    text-decoration: none;
}

.card a:hover {
    border-bottom-color: transparent;
}

.footer {
    text-align: center;
    padding-top: 20px;
    border-top: solid 2px rgba(255, 255, 255, 0.125);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

/* Admin tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: solid 1px rgba(255, 255, 255, 0.125);
}

.admin-table th {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9em;
}

.admin-table tbody tr:nth-child(2n + 1) {
    background-color: rgba(255, 255, 255, 0.025);
}

.admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.action-buttons {
    white-space: nowrap;
}

.action-buttons form {
    margin-right: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .container {
        padding: 24px;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 6px 8px;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
}
