/*
Theme Name: Astra Child
Theme URI: https://example.com
Description: Child theme for the Astra theme
Author: Your Name
Author URI: https://example.com
Template: astra
Version: 1.0.0
*/

/*  Add your custom CSS below */

/* General Styling & Variables - to keep a consistent look and feel */

:root {
    --primary-color: #3498db; /*  Blue similar to submit button */
    --secondary-color: #f0f0f0; /*  Light gray for hover backgrounds */
    --text-color: #333;  /* Dark gray for text */
    --border-color: #ddd; /* Light gray for borders */
    --background-color: #f9f9f9; /* Very light gray for backgrounds */
    --container-max-width: 1000px;  /* Maximum width for content containers */
    --border-radius: 8px; /* Rounded corners */
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /*  Subtle shadow */
    --padding-small: 8px 12px;
    --padding-medium: 10px;
    --padding-large: 12px 20px;
    --table-background-color: #fff; /* Define a table background color (white) */
}

/*Make table background color a global var*/
table {
  border-radius: var(--border-radius);
  overflow: hidden;  /*  This is important!  */
  border-collapse: collapse; /* This is critical for border-radius to work */
  width: 100%; /* Ensure tables take up full width by default */
  margin: 1em 0;   /* Add some vertical spacing */
  background-color: var(--table-background-color); /* Set the background color for tables */
  border: var(--background-color) solid 1px; /* Border with the same color as the page background */
}


body {
  font-family: sans-serif; /* Or your preferred font */
}



/* Reusable Panel Style */
.panel {
    max-width: var(--container-max-width); /*  Or adjust as needed */
    margin: 20px auto; /* Center the panel */
    padding: 30px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: var(--padding-small);
    margin: 0 4px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    border-radius: var(--border-radius); /* Add rounded corners */
}

.pagination a:hover {
    background-color: var(--secondary-color);
}

.pagination span.current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}


/* Apps Table */
.apps-table {
    width: 100%;
    max-width: var(--container-max-width);
    border-collapse: collapse;
    margin: 20px auto;
    table-layout: fixed;
    border-radius: var(--border-radius); /* Add rounded corners to the whole table */
    overflow: hidden; /* Needed to clip the rounded corners on the cells */
    position: relative; /* Required for positioning the pseudo-element */
}

/* Left table border - REMOVED the pseudo element approach, as it was causing the corner issue*/
/*  Instead, rely on default table border */
/*
.apps-table::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--table-border-width);
    background-color: var(--border-color);
}
*/

.apps-table th,
.apps-table td {
    padding: var(--padding-large);
    border: 1px solid var(--border-color);  /*Use var here*/
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.apps-table thead {
    background-color: var(--secondary-color);
}

.apps-table tbody tr:hover {
    background-color: var(--background-color);
}

.single-review {
    margin-bottom: 15px;
}


/* App Submission Form */
.app-submission-form-container {
    max-width: 900px;
    margin: 40px auto; /* Increased margin around the entire form */
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    /* Use the standard panel style */
}

.app-submission-form {
    display: flex;
    flex-direction: column;
}

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

.app-submission-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.app-submission-form input[type="text"],
.app-submission-form input[type="url"],
.app-submission-form textarea,
.app-submission-form select { /* Add select element */
    padding: var(--padding-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    box-sizing: border-box;
}

.app-submission-form textarea {
    resize: vertical;
    min-height: 120px;
}

.app-submission-form .full-width {
    width: 100%;
}

.app-submission-form .full-width input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: var(--padding-large);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    width: auto;
    display: block;
    margin-top: 10px;
}

.error {
  color: red;
  background-color: #ffe6e6;
  border: 1px solid red;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: var(--border-radius); /*  Apply the border-radius variable */
  box-shadow: var(--box-shadow);      /*  Apply the box-shadow variable, to match the other form sections */
}

.app-submission-form .success {
    color: green;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-submission-form-container {
        margin: 20px auto;
        padding: 20px;
    }
}

/* App Information */
.app-information {
    border: 1px solid var(--border-color);
    padding: var(--padding-medium);
    margin-bottom: 20px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);

}

.app-information h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.app-information p {
    margin-bottom: 5px;
}

/* Standard Panel Usage */
.standard-panel {
    max-width: var(--container-max-width);
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}


th, td {
  padding: 0.5em; /* Adjust padding as needed */
  border: 1px solid var(--border-color); /* Maintain consistent border */
  text-align: left;
}

thead {
  background-color: var(--secondary-color);  /* Consistent header color */
}